[export] add a filter and aggregator on accompanying periods: group by activity type (accompanying course having at least one activity from this type)

This commit is contained in:
2023-10-18 16:56:35 +02:00
parent 11fb9bcd0b
commit 981dc6a959
6 changed files with 229 additions and 0 deletions

View File

@@ -34,6 +34,7 @@ class PickRollingDateType extends AbstractType
),
'multiple' => false,
'expanded' => false,
'required' => $options['required'],
'label' => 'rolling_date.roll_movement',
])
->add('fixedDate', ChillDateType::class, [
@@ -57,7 +58,10 @@ class PickRollingDateType extends AbstractType
'constraints' => [
new Callback($this->validate(...)),
],
'required' => true,
]);
$resolver->setAllowedTypes('required', 'bool');
}
public function validate($data, ExecutionContextInterface $context, $payload): void