Commit c986f610 by Damien Moulard

fix conditional display of profildecotisation in adherent admin

parent b962959e
...@@ -166,7 +166,7 @@ class AdherentAdmin extends AbstractAdmin ...@@ -166,7 +166,7 @@ class AdherentAdmin extends AbstractAdmin
->end() ->end()
; ;
if (true) { if ($this->getConfigurationPool()->getContainer()->getParameter('tav_env')) {
$formMapper $formMapper
->tab('General') ->tab('General')
->with('Profil de cotisation', ['class' => 'col-md-5']) ->with('Profil de cotisation', ['class' => 'col-md-5'])
...@@ -177,7 +177,7 @@ class AdherentAdmin extends AbstractAdmin ...@@ -177,7 +177,7 @@ class AdherentAdmin extends AbstractAdmin
'empty_data' => null, 'empty_data' => null,
'choice_label' => function ($choice, $key, $value) { 'choice_label' => function ($choice, $key, $value) {
if (null === $choice) { if (null === $choice) {
return 'Aucun.'; return '';
} }
return $choice->__toString(); return $choice->__toString();
......
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