Commit 72a6f6fb authored by Théo GUILLON's avatar Théo GUILLON
Browse files

Correction : key

parent 945258ee
...@@ -876,13 +876,16 @@ class Fiche extends AppModel implements LinkedOrganisationInterface { ...@@ -876,13 +876,16 @@ class Fiche extends AppModel implements LinkedOrganisationInterface {
$prefix = 'valeur_'; $prefix = 'valeur_';
} }
foreach ($jsons as $key => $json) { $key = 0;
foreach ($jsons as $json) {
foreach ($json as $variable => $val) { foreach ($json as $variable => $val) {
$donnees[$value['Valeur']['champ_name']][$key][$prefix . $variable] = [ $donnees[$value['Valeur']['champ_name']][$key][$prefix . $variable] = [
'value' => $val, 'value' => $val,
'type' => 'text' 'type' => 'text'
]; ];
} }
$key++;
} }
} else { } else {
$donnees['valeur_' . $value['Valeur']['champ_name']] = [ $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