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

@@ -88,8 +88,8 @@ class ActivityType extends AbstractType
if (null !== $options['data']->getPerson()) {
$builder->add('scope', ScopePickerType::class, [
'center' => $options['center'],
'role' => ActivityVoter::CREATE === (string) $options['role'] ? ActivityVoter::CREATE_PERSON : (string) $options['role'],
'center' => $options['center'],
'required' => true,
]);
}