Commit c986f610 by Damien Moulard

fix conditional display of profildecotisation in adherent admin

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