mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2026-04-29 17:29:31 +00:00
Remove the label if there is only one scope and no scope picking field is displayed.
This commit is contained in:
@@ -168,9 +168,8 @@ final readonly class PersonContext implements PersonContextInterface
|
||||
|
||||
if ($this->isScopeNecessary($entity)) {
|
||||
$builder->add('scope', ScopePickerType::class, [
|
||||
'center' => $this->centerResolverManager->resolveCenters($entity),
|
||||
'role' => PersonDocumentVoter::CREATE,
|
||||
'label' => 'Scope',
|
||||
'subject' => $entity,
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user