Remove the label if there is only one scope and no scope picking field is displayed.

This commit is contained in:
2025-11-17 10:48:15 +00:00
parent 04bc1c5de8
commit a43181d60d
9 changed files with 65 additions and 34 deletions

View File

@@ -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,
]);
}
}