From 8efe0143f988a4f103b432c9f0e7736d20834155 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 6 May 2015 16:37:04 +0200 Subject: [PATCH] FIX Adding 5 more choice link into survey module was not working with chrome --- htdocs/opensurvey/wizard/choix_autre.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/htdocs/opensurvey/wizard/choix_autre.php b/htdocs/opensurvey/wizard/choix_autre.php index d2ec6067b85..6b4cceaae0d 100644 --- a/htdocs/opensurvey/wizard/choix_autre.php +++ b/htdocs/opensurvey/wizard/choix_autre.php @@ -1,6 +1,6 @@ - * Copyright (C) 2014 Marcos García +/* Copyright (C) 2013-2015 Laurent Destailleur + * Copyright (C) 2014 Marcos García * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -30,6 +30,8 @@ require_once(DOL_DOCUMENT_ROOT."/opensurvey/fonctions.php"); // Security check if (!$user->rights->opensurvey->write) accessforbidden(); + + /* * Action */ @@ -48,7 +50,8 @@ if (isset($_SESSION["nbrecases"])) { $_SESSION["nbrecases"]=5; } -if (isset($_POST["ajoutcases"])) { +if (GETPOST("ajoutcases") || GETPOST("ajoutcases_x")) +{ $_SESSION["nbrecases"]=$_SESSION["nbrecases"]+5; } @@ -83,7 +86,7 @@ if (isset($_POST["confirmecreation"])) if ($testremplissage != "ok" || (!$toutchoix)) { setEventMessage($langs->trans("ErrorOpenSurveyOneChoice"), 'errors'); } else { - + //format du sondage AUTRE $_SESSION["formatsondage"]="A";