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