Loading src/UnicaenAutoform/Service/Formulaire/FormulaireReponseService.php +6 −0 Original line number Diff line number Diff line Loading @@ -277,8 +277,11 @@ class FormulaireReponseService $listing = array_filter($listing, function ($texte) { return $texte !== ''; }); if (empty($listing)) { return null; } $texte = implode(";", $listing); return $texte; case Champ::TYPE_PLUS_CUSTOM : $nbFields = count(explode(";", $champ->getOptions())); Loading @@ -303,8 +306,11 @@ class FormulaireReponseService for($i = 0 ; $i <$nbFields ; $i++) { $subconcat[] = $items[$i]??""; } $test = implode('', $subconcat); if (trim($test) !== "") { $concat[] = implode(Champ::SEPARATOR_PLUS_CUSTOM_FIELD, $subconcat); } } $values = implode(Champ::SEPARATOR_PLUS_CUSTOM_GROUP, $concat); return $values; Loading src/UnicaenAutoform/View/Helper/partial/input/plus_custom.phtml +4 −4 Original line number Diff line number Diff line Loading @@ -94,11 +94,11 @@ $array = "[" . implode(",", $temp) . "]"; // console.log(dictionnary); if (dictionnary !== ['']) { for (let i = 0; i < dictionnary.length; i++) { if (dictionnary[i][0] !== "") { // if (dictionnary[i][0] !== "") { ajouter_PlusCustom(sid, fields, dictionnary[i]); } else { if (i === 0) ajouter_PlusCustom(sid, fields); } // } else { // if (i === 0) ajouter_PlusCustom(sid, fields); // } } } Loading Loading
src/UnicaenAutoform/Service/Formulaire/FormulaireReponseService.php +6 −0 Original line number Diff line number Diff line Loading @@ -277,8 +277,11 @@ class FormulaireReponseService $listing = array_filter($listing, function ($texte) { return $texte !== ''; }); if (empty($listing)) { return null; } $texte = implode(";", $listing); return $texte; case Champ::TYPE_PLUS_CUSTOM : $nbFields = count(explode(";", $champ->getOptions())); Loading @@ -303,8 +306,11 @@ class FormulaireReponseService for($i = 0 ; $i <$nbFields ; $i++) { $subconcat[] = $items[$i]??""; } $test = implode('', $subconcat); if (trim($test) !== "") { $concat[] = implode(Champ::SEPARATOR_PLUS_CUSTOM_FIELD, $subconcat); } } $values = implode(Champ::SEPARATOR_PLUS_CUSTOM_GROUP, $concat); return $values; Loading
src/UnicaenAutoform/View/Helper/partial/input/plus_custom.phtml +4 −4 Original line number Diff line number Diff line Loading @@ -94,11 +94,11 @@ $array = "[" . implode(",", $temp) . "]"; // console.log(dictionnary); if (dictionnary !== ['']) { for (let i = 0; i < dictionnary.length; i++) { if (dictionnary[i][0] !== "") { // if (dictionnary[i][0] !== "") { ajouter_PlusCustom(sid, fields, dictionnary[i]); } else { if (i === 0) ajouter_PlusCustom(sid, fields); } // } else { // if (i === 0) ajouter_PlusCustom(sid, fields); // } } } Loading