Skip to content
Snippets Groups Projects
Commit 30faa793 authored by Damien Labat's avatar Damien Labat
Browse files

feat: export add referent emails

add referentEmail, referentCyberEmail and referentEluEmail columns
parent 711d5e76
No related branches found
No related tags found
1 merge request!2feat: export add referent emails
Pipeline #39540 failed
......@@ -42,8 +42,11 @@ public function toArray($request): array
'info' => $organization->info, // - infos complémentaires
'fullAddress' => (string) $organization->address, // - adresses (tous les champs)
'referent' => (string) $organization->referent, // - référents et responsable (tous les champs)
'referentEmail' => $organization->referent->email, // - référents et responsable (tous les champs)
'referentCyber' => (string) $organization->referentCyber,
'referentCyberEmail' => $organization->referentCyber->email,
'referentElu' => (string) $organization->referentElu,
'referentEluEmail' => $organization->referentElu->email,
'lastEvaluation.cyberMaturity' => (float) $lastEvaluation?->maturity_cyber, // - score indice maturité cyber
'previousEvaluation.cyberMaturity' => (float) $previousEvaluation?->maturity_cyber, // - score indice maturité cyber n-1
];
......
......@@ -13,8 +13,11 @@
'info' => 'infos complémentaire',
'fullAddress' => 'adresse',
'referent' => 'référent',
'referentEmail' => 'email référent',
'referentElu' => 'référent élu',
'referentEluEmail' => 'email référent élu',
'referentCyber' => 'référent cyber',
'referentCyberEmail' => 'email référent cyber',
'lastEvaluation' => [
'cyberMaturity' => 'score indice maturité cyber',
'reference' => 'version du référentiel',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment