Commit b5cb1754 by Damien Moulard

Merge branch '6019-presta-enabled-checkbox-is-always-false' into 'ssa-gironde'

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

See merge request cooperatic/kohinos-tav!76
parents b9d2a992 1f8d8c51
...@@ -366,7 +366,8 @@ class PrestataireAdmin extends AbstractAdmin ...@@ -366,7 +366,8 @@ class PrestataireAdmin extends AbstractAdmin
->add('enabled', null, [ ->add('enabled', null, [
'label' => 'Activé ?', 'label' => 'Activé ?',
'required' => false, 'required' => false,
'data' => false 'data' => $presta && $presta->getRaison() ? $presta->isEnabled() : false, //force false at create time only
'attr' => ['autocomplete' => 'off']
]) ])
->add('conventionnement', ChoiceType::class, [ ->add('conventionnement', ChoiceType::class, [
'choices' => [ '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