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

Correction : enregistrement condition lorsque il y en a pas

Correction : de l'affichage lorsqu'il y a pas de condition
parent 35c4a53f
......@@ -609,10 +609,17 @@ class FormulairesController extends AppController {
break;
case 'conditions':
$conditionsChecked = [];
if (empty($val)) {
break;
}
$conditionsChecked = [];
$conditions = json_decode($val, true);
debug($conditions);
if (empty($conditions)){
break;
}
foreach ($conditions as $uuid => $condition) {
$condition = (array)$condition;
......
......@@ -32,6 +32,10 @@ foreach ($champs as $key => $value) {
$fieldRepeat = "fieldNoRepeat";
}
if (!isset($details['conditions'])) {
$details['conditions'] = '';
}
switch ($value['Champ']['type']) {
// Petit champ texte
case 'input':
......
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