Project 'cooperatic/kohinos-tav' was moved to 'agplv3/kohinos-tav'. Please update any links and bookmarks that may still have the old path.
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
->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