Commit 1f8d8c51 by Yvon

force presta enabled checkbox to false only at presta create time, otherwise display database value

parent b9d2a992
......@@ -366,7 +366,8 @@ class PrestataireAdmin extends AbstractAdmin
->add('enabled', null, [
'label' => 'Activé ?',
'required' => false,
'data' => false
'data' => $presta && $presta->getRaison() ? $presta->isEnabled() : false, //force false at create time only
'attr' => ['autocomplete' => 'off']
])
->add('conventionnement', ChoiceType::class, [
'choices' => [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment