Skip to content

Commit

Permalink
Fixes issue : #4712: Timer dosent reset in timer_limit questions
Browse files Browse the repository at this point in the history
Dev : remove cookie timer with newtest==Y and in movesubmit part. Don(t test if timer exist

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey@9396 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
Shnoulle committed Nov 2, 2010
1 parent 0e08fe9 commit c8bd384
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions group.php
Expand Up @@ -88,6 +88,7 @@
//SUBMIT ###############################################################################
if ((isset($move) && $move == "movesubmit") && (!isset($notanswered) || !$notanswered) && (!isset($notvalidated) || !$notvalidated ))
{
setcookie ("limesurvey_timers", "", time() - 3600);// remove the timers cookies
if ($thissurvey['refurl'] == "Y")
{
if (!in_array("refurl", $_SESSION['insertarray'])) //Only add this if it doesn't already exist
Expand Down
6 changes: 5 additions & 1 deletion index.php
Expand Up @@ -448,7 +448,11 @@
$totalBoilerplatequestions =0;
$thissurvey=getSurveyInfo($surveyid, $_SESSION['s_lang']);

if (isset($_GET['newtest']) && $_GET['newtest'] = "Y") unset($_GET['token']);
if (isset($_GET['newtest']) && $_GET['newtest'] = "Y")
{
unset($_GET['token']);
setcookie ("limesurvey_timers", "", time() - 3600);
}



Expand Down
1 change: 1 addition & 0 deletions question.php
Expand Up @@ -153,6 +153,7 @@
//SUBMIT
if ((isset($move) && $move == "movesubmit") && (!isset($notanswered) || !$notanswered) && (!isset($notvalidated) || !$notvalidated ))
{
setcookie ("limesurvey_timers", "", time() - 3600);// remove the timers cookies
if ($thissurvey['refurl'] == "Y")
{
if (!in_array("refurl", $_SESSION['insertarray'])) //Only add this if it doesn't already exist
Expand Down
1 change: 1 addition & 0 deletions survey.php
Expand Up @@ -39,6 +39,7 @@
//SUBMIT
if ((isset($move) && $move == "movesubmit") && (!isset($notanswered) || !$notanswered) && (!isset($notvalidated) && !$notvalidated))
{
setcookie ("limesurvey_timers", "", time() - 3600);// remove the timers cookies : not actually used in all in one.
if ($thissurvey['private'] == "Y")
{
$privacy = templatereplace(file_get_contents("$thistpl/privacy.pstpl"));
Expand Down

0 comments on commit c8bd384

Please sign in to comment.