disable/comment buildForm in SocialWorkType Filter

This commit is contained in:
Mathieu Jaumotte 2022-09-05 12:37:00 +02:00
parent 374ad43df6
commit c4f0ad01d3

View File

@ -56,6 +56,7 @@ class SocialWorkTypeFilter implements FilterInterface
'expanded' => true
]);
/*
$refreshGoals = function (FormInterface $form, SocialAction $actionType = null) {
$goals = null === $actionType ? [] : $actionType->getGoals();
@ -76,14 +77,15 @@ class SocialWorkTypeFilter implements FilterInterface
$refreshGoals($event->getForm(), $data);
});
/* $builder->get('actionType')->addEventListener(
$builder->get('actionType')->addEventListener(
FormEvents::POST_SUBMIT,
function (FormEvent $event) use ($refreshGoals) {
$actionType = $event->getForm()->getData();
dump($actionType);
$refreshGoals($event->getForm()->getParent(), $actionType);
}
);*/
);
*/
}
public function getTitle(): string