mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-11-26 21:58:31 +00:00
Remove the label if there is only one scope and no scope picking field is displayed.
This commit is contained in:
@@ -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,
|
||||
]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user