Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
kohinos-tav
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
agplv3
kohinos-tav
Commits
706b6fe9
Commit
706b6fe9
authored
Apr 22, 2025
by
Yvon Kerdoncuff
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hide/show subterritory filter also in admin adherent
parent
5c36890c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
AdherentAdmin.php
src/Admin/AdherentAdmin.php
+6
-4
No files found.
src/Admin/AdherentAdmin.php
View file @
706b6fe9
...
@@ -731,16 +731,18 @@ class AdherentAdmin extends AbstractAdmin
...
@@ -731,16 +731,18 @@ class AdherentAdmin extends AbstractAdmin
])
])
;
;
if
(
$this
->
getConfigurationPool
()
->
getContainer
()
->
getParameter
(
'tav_env'
))
{
$withSubterritory
=
$this
->
getConfigurationPool
()
->
getContainer
()
->
get
(
'doctrine'
)
->
getRepository
(
GlobalParameter
::
class
)
->
val
(
GlobalParameter
::
GEOLOC_WITH_SUBTERRITORY
);
$datagridMapper
if
(
'true'
===
$withSubterritory
)
{
->
remove
(
'cotisationajour'
);
if
(
$this
->
getConfigurationPool
()
->
getContainer
()
->
getParameter
(
'household_based_allowance'
))
{
$datagridMapper
->
add
(
'geoloc.subterritory'
,
null
,
[
$datagridMapper
->
add
(
'geoloc.subterritory'
,
null
,
[
'label'
=>
'Territoire'
,
'label'
=>
'Territoire'
,
'advanced_filter'
=>
false
,
'advanced_filter'
=>
false
,
'show_filter'
=>
true
,
'show_filter'
=>
true
,
]);
]);
}
}
if
(
$this
->
getConfigurationPool
()
->
getContainer
()
->
getParameter
(
'tav_env'
))
{
$datagridMapper
->
remove
(
'cotisationajour'
);
if
(
$this
->
getConfigurationPool
()
->
getContainer
()
->
getParameter
(
'ccas_mode'
))
{
if
(
$this
->
getConfigurationPool
()
->
getContainer
()
->
getParameter
(
'ccas_mode'
))
{
$datagridMapper
$datagridMapper
->
add
(
'anonymoustoken'
,
CallbackFilter
::
class
,
[
->
add
(
'anonymoustoken'
,
CallbackFilter
::
class
,
[
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment