Commit 4a39a1ba authored by Théo GUILLON's avatar Théo GUILLON
Browse files

Correction : variable soustraitant par soustraitance

Correction : génération valeur donnees_sensibles et transfert_hors_ue
parent f98e0439
...@@ -294,7 +294,7 @@ class ModelesController extends AppController { ...@@ -294,7 +294,7 @@ class ModelesController extends AppController {
'transfert_hors_ue', 'transfert_hors_ue',
'donnees_sensibles', 'donnees_sensibles',
'coresponsable', 'coresponsable',
'soustraitant', 'soustraitance',
'numeroenregistrement', 'numeroenregistrement',
'norme', 'norme',
'normelibelle', 'normelibelle',
......
...@@ -886,12 +886,14 @@ class Fiche extends AppModel implements LinkedOrganisationInterface { ...@@ -886,12 +886,14 @@ class Fiche extends AppModel implements LinkedOrganisationInterface {
'fields' => [ 'fields' => [
'norme_id', 'norme_id',
'coresponsable', 'coresponsable',
'created',
'modified',
'soustraitance', 'soustraitance',
'obligation_pia', 'obligation_pia',
'realisation_pia', 'realisation_pia',
'depot_pia', 'depot_pia',
'created', 'transfert_hors_ue',
'modified' 'donnees_sensibles',
] ]
]); ]);
...@@ -925,6 +927,8 @@ class Fiche extends AppModel implements LinkedOrganisationInterface { ...@@ -925,6 +927,8 @@ class Fiche extends AppModel implements LinkedOrganisationInterface {
case 'obligation_pia': case 'obligation_pia':
case 'realisation_pia': case 'realisation_pia':
case 'depot_pia': case 'depot_pia':
case 'transfert_hors_ue':
case 'donnees_sensibles':
if (!empty($value)) { if (!empty($value)) {
if ($value === true) { if ($value === true) {
$data = $this->_addValueData($data, 'Oui', $key); $data = $this->_addValueData($data, 'Oui', $key);
...@@ -972,7 +976,8 @@ class Fiche extends AppModel implements LinkedOrganisationInterface { ...@@ -972,7 +976,8 @@ class Fiche extends AppModel implements LinkedOrganisationInterface {
$data = $this->_addValueData($data, $norme['Norme']['libelle'], 'normelibelle'); $data = $this->_addValueData($data, $norme['Norme']['libelle'], 'normelibelle');
$data = $this->_addValueData($data, $norme['Norme']['description'],'normedescription'); $normeDescription = preg_replace('@<[^>]*?>.*?>@si', "\n\r", $norme['Norme']['description']);
$data = $this->_addValueData($data, $normeDescription,'normedescription');
} }
return $data; return $data;
......
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