FIX Adding 5 more choice link into survey module was not working with
chrome
This commit is contained in:
parent
45f36514ec
commit
8efe0143f9
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2013 Laurent Destailleur <eldy@users.sourceforge.net>
|
/* Copyright (C) 2013-2015 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
* Copyright (C) 2014 Marcos García <marcosgdf@gmail.com>
|
* Copyright (C) 2014 Marcos García <marcosgdf@gmail.com>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* 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
|
* 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
|
// Security check
|
||||||
if (!$user->rights->opensurvey->write) accessforbidden();
|
if (!$user->rights->opensurvey->write) accessforbidden();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Action
|
* Action
|
||||||
*/
|
*/
|
||||||
@ -48,7 +50,8 @@ if (isset($_SESSION["nbrecases"])) {
|
|||||||
$_SESSION["nbrecases"]=5;
|
$_SESSION["nbrecases"]=5;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($_POST["ajoutcases"])) {
|
if (GETPOST("ajoutcases") || GETPOST("ajoutcases_x"))
|
||||||
|
{
|
||||||
$_SESSION["nbrecases"]=$_SESSION["nbrecases"]+5;
|
$_SESSION["nbrecases"]=$_SESSION["nbrecases"]+5;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -83,7 +86,7 @@ if (isset($_POST["confirmecreation"]))
|
|||||||
if ($testremplissage != "ok" || (!$toutchoix)) {
|
if ($testremplissage != "ok" || (!$toutchoix)) {
|
||||||
setEventMessage($langs->trans("ErrorOpenSurveyOneChoice"), 'errors');
|
setEventMessage($langs->trans("ErrorOpenSurveyOneChoice"), 'errors');
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
//format du sondage AUTRE
|
//format du sondage AUTRE
|
||||||
$_SESSION["formatsondage"]="A";
|
$_SESSION["formatsondage"]="A";
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user