Commit 92e4894e authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

Changement du séparateur

parent 762174df
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -32,7 +32,7 @@ class Champ implements HistoriqueAwareInterface, HasMotsClefsInterface {
    const TYPE_PLUS_CUSTOM      = "Plus Custom"; //

    const SEPARATOR_PLUS_CUSTOM_GROUP = "|";
    const SEPARATOR_PLUS_CUSTOM_FIELD = ";";
    const SEPARATOR_PLUS_CUSTOM_FIELD = "###";

    private ?int $id = null;
    private ?Categorie $categorie = null;
+3 −2
Original line number Diff line number Diff line
@@ -102,12 +102,13 @@ $array = "[" . implode(",", $temp) . "]";
    $(function () {
        let optionsText = '<?php echo $champ->getOptions(); ?>';
        let fields = readOptions(optionsText);
        let reponses = `<?php echo $reponse?str_replace(["'",'"'],["\'", '\"'],$reponse):""; ?>`;
        let reponses = `<?php echo $reponse; ?>`;
        console.log(reponses);

        let dictionnary = [];
        let blob = reponses.split('|');
        for (let i = 0; i < blob.length; i++) {
            dictionnary[i] = blob[i].split(';');
            dictionnary[i] = blob[i].split('###');
        }

        readOptions(optionsText);