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

Correction : key

parent 945258ee
......@@ -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