mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
remove scope in PersonDocumentType when disabled
This commit is contained in:
parent
e0c7daf3fd
commit
a387305ef8
@ -64,9 +64,9 @@ class PersonDocumentType extends AbstractType
|
|||||||
|
|
||||||
public function buildForm(FormBuilderInterface $builder, array $options)
|
public function buildForm(FormBuilderInterface $builder, array $options)
|
||||||
{
|
{
|
||||||
// if (null !== $document = $options['data']) {
|
if (null !== $document = $options['data']) {
|
||||||
// $isScopeConcerned = $this->scopeResolverDispatcher->isConcerned($document);
|
$isScopeConcerned = $this->scopeResolverDispatcher->isConcerned($document);
|
||||||
// }
|
}
|
||||||
|
|
||||||
$builder
|
$builder
|
||||||
->add('title', TextType::class)
|
->add('title', TextType::class)
|
||||||
@ -89,12 +89,13 @@ class PersonDocumentType extends AbstractType
|
|||||||
return $entity ? $this->translatableStringHelper->localize($entity->getName()) : '';
|
return $entity ? $this->translatableStringHelper->localize($entity->getName()) : '';
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
// if ($isScopeConcerned && $this->parameterBag->get('chill_main')['acl']['form_show_scopes']) {
|
|
||||||
// $builder->add('scope', ScopePickerType::class, [
|
if ($isScopeConcerned && $this->parameterBag->get('chill_main')['acl']['form_show_scopes']) {
|
||||||
// 'center' => $options['center'],
|
$builder->add('scope', ScopePickerType::class, [
|
||||||
// 'role' => $options['role'],
|
'center' => $options['center'],
|
||||||
// ]);
|
'role' => $options['role'],
|
||||||
// }
|
]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function configureOptions(OptionsResolver $resolver)
|
public function configureOptions(OptionsResolver $resolver)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user