mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
trying to get selected periods to be caught after form submit
This commit is contained in:
parent
291d340aa0
commit
81bff2bb76
@ -99,13 +99,7 @@ class ReassignAccompanyingPeriodController extends AbstractController
|
||||
$paginator->getCurrentPageFirstItemNumber()
|
||||
);
|
||||
|
||||
$assignPeriods = [];
|
||||
|
||||
foreach($periods as $period) {
|
||||
$assignPeriods[$period->getId()] = $period;
|
||||
}
|
||||
|
||||
$assignForm = $this->buildReassignForm($assignPeriods);
|
||||
$assignForm = $this->buildReassignForm($periods);
|
||||
|
||||
$assignForm->handleRequest($request);
|
||||
|
||||
@ -201,7 +195,7 @@ class ReassignAccompanyingPeriodController extends AbstractController
|
||||
'required' => true,
|
||||
]);
|
||||
|
||||
$builder->get('periods')->resetViewTransformers();
|
||||
// $builder->get('periods')->resetViewTransformers();
|
||||
|
||||
return $builder->getForm();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user