Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
madis
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Soluris
madis
Commits
65625485
Commit
65625485
authored
4 months ago
by
Jonathan Foucher
Browse files
Options
Downloads
Patches
Plain Diff
reorder columns. Fixes
#967
parent
4569681b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#84831
failed
4 months ago
Stage: cache
Stage: tests
Stage: quality-assurance
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/Domain/User/Controller/CollectivityController.php
+6
-6
6 additions, 6 deletions
src/Domain/User/Controller/CollectivityController.php
src/Infrastructure/ORM/User/Repository/Collectivity.php
+3
-0
3 additions, 0 deletions
src/Infrastructure/ORM/User/Repository/Collectivity.php
with
9 additions
and
6 deletions
src/Domain/User/Controller/CollectivityController.php
+
6
−
6
View file @
65625485
...
...
@@ -169,10 +169,10 @@ class CollectivityController extends CRUDController
'informations_complementaires'
=>
!
\is_null
(
$collectivity
->
getInformationsComplementaires
())
?
nl2br
(
$collectivity
->
getInformationsComplementaires
())
:
null
,
'siren'
=>
$collectivity
->
getSiren
(),
'statut'
=>
$collectivity
->
isActive
()
?
$active
:
$inactive
,
'population'
=>
$collectivity
->
getPopulation
(),
'nbr_agents'
=>
$collectivity
->
getNbrAgents
(),
'nbr_cnil'
=>
$collectivity
->
getNbrCnil
(),
'tel_referent_rgpd'
=>
!
\is_null
(
$collectivity
->
getDpo
())
?
(
$collectivity
->
getDpo
())
->
getPhoneNumber
()
:
null
,
'nbr_agents'
=>
$collectivity
->
getNbrAgents
(),
'population'
=>
$collectivity
->
getPopulation
(),
//'tel_referent_rgpd' => !\is_null($collectivity->getDpo()) ? ($collectivity->getDpo())->getPhoneNumber() : null,
'createdAt'
=>
!
\is_null
(
$collectivity
->
getCreatedAt
())
?
$collectivity
->
getCreatedAt
()
->
format
(
'd-m-Y H:i'
)
:
null
,
'updatedAt'
=>
!
\is_null
(
$collectivity
->
getUpdatedAt
())
?
$collectivity
->
getUpdatedAt
()
->
format
(
'd-m-Y H:i'
)
:
null
,
'actions'
=>
$this
->
getActionCellsContent
(
$collectivity
),
...
...
@@ -212,11 +212,11 @@ class CollectivityController extends CRUDController
'nom_court'
,
'type'
,
'informations_complementaires'
,
'siren'
,
'statut'
,
'date_maj'
,
'population'
,
'nbr_agents'
,
'nbr_cnil'
,
'nbr_agents'
,
'population'
,
'createdAt'
,
'updatedAt'
,
'actions'
,
...
...
This diff is collapsed.
Click to expand it.
src/Infrastructure/ORM/User/Repository/Collectivity.php
+
3
−
0
View file @
65625485
...
...
@@ -172,6 +172,9 @@ class Collectivity extends CRUDRepository implements Repository\Collectivity
case
'statut'
:
$queryBuilder
->
addOrderBy
(
'o.active'
,
$orderDir
);
break
;
case
'informations_complementaires'
:
$queryBuilder
->
addOrderBy
(
'o.informationsComplementaires'
,
$orderDir
);
break
;
case
'nbr_agents'
:
$queryBuilder
->
addOrderBy
(
'o.nbrAgents'
,
$orderDir
);
break
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment