Commit ab1e45ec authored by THEO GUILLON's avatar THEO GUILLON

Merge branch '438-variables-non-reconnues-dans-modele' into '2.0.0'

Resolve "Variables non reconnues dans modèle"

See merge request libriciel/pole-citoyens/web-DPO/web-DPO!442
parents 945258ee 72a6f6fb
......@@ -876,13 +876,16 @@ class Fiche extends AppModel implements LinkedOrganisationInterface {
$prefix = 'valeur_';
}
foreach ($jsons as $key => $json) {
$key = 0;
foreach ($jsons as $json) {
foreach ($json as $variable => $val) {
$donnees[$value['Valeur']['champ_name']][$key][$prefix . $variable] = [
'value' => $val,
'type' => 'text'
];
}
$key++;
}
} else {
$donnees['valeur_' . $value['Valeur']['champ_name']] = [
......
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