Commit 706b6fe9 by Yvon Kerdoncuff

hide/show subterritory filter also in admin adherent

parent 5c36890c
...@@ -731,16 +731,18 @@ class AdherentAdmin extends AbstractAdmin ...@@ -731,16 +731,18 @@ class AdherentAdmin extends AbstractAdmin
]) ])
; ;
$withSubterritory = $this->getConfigurationPool()->getContainer()->get('doctrine')->getRepository(GlobalParameter::class)->val(GlobalParameter::GEOLOC_WITH_SUBTERRITORY);
if('true' === $withSubterritory) {
$datagridMapper->add('geoloc.subterritory', null, [
'label' => 'Territoire',
'advanced_filter' => false,
'show_filter' => true,
]);
}
if ($this->getConfigurationPool()->getContainer()->getParameter('tav_env')) { if ($this->getConfigurationPool()->getContainer()->getParameter('tav_env')) {
$datagridMapper $datagridMapper
->remove('cotisationajour'); ->remove('cotisationajour');
if($this->getConfigurationPool()->getContainer()->getParameter('household_based_allowance')) {
$datagridMapper->add('geoloc.subterritory', null, [
'label' => 'Territoire',
'advanced_filter' => false,
'show_filter' => true,
]);
}
if ($this->getConfigurationPool()->getContainer()->getParameter('ccas_mode')) { if ($this->getConfigurationPool()->getContainer()->getParameter('ccas_mode')) {
$datagridMapper $datagridMapper
->add('anonymoustoken', CallbackFilter::class, [ ->add('anonymoustoken', CallbackFilter::class, [
......
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