FIX Adding 5 more choice link into survey module was not working with

chrome
This commit is contained in:
Laurent Destailleur 2015-05-06 16:37:04 +02:00
parent 45f36514ec
commit 8efe0143f9

View File

@ -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;
} }