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 {
'transfert_hors_ue',
'donnees_sensibles',
'coresponsable',
'soustraitant',
'soustraitance',
'numeroenregistrement',
'norme',
'normelibelle',
......
......@@ -886,12 +886,14 @@ class Fiche extends AppModel implements LinkedOrganisationInterface {
'fields' => [
'norme_id',
'coresponsable',
'created',
'modified',
'soustraitance',
'obligation_pia',
'realisation_pia',
'depot_pia',
'created',
'modified'
'transfert_hors_ue',
'donnees_sensibles',
]
]);
......@@ -925,6 +927,8 @@ class Fiche extends AppModel implements LinkedOrganisationInterface {
case 'obligation_pia':
case 'realisation_pia':
case 'depot_pia':
case 'transfert_hors_ue':
case 'donnees_sensibles':
if (!empty($value)) {
if ($value === true) {
$data = $this->_addValueData($data, 'Oui', $key);
......@@ -972,7 +976,8 @@ class Fiche extends AppModel implements LinkedOrganisationInterface {
$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;
......
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