Skip to content

Commit

Permalink
Fixed issue #05844: Validation message should not be shown when using…
Browse files Browse the repository at this point in the history
… resume later function

Dev also prevents display of red messages when resume a survey
  • Loading branch information
TMSWhite committed Feb 22, 2012
1 parent 0f823db commit 2c6a7f9
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions group.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,15 @@

if (!isset($_SESSION['totalsteps'])) {$_SESSION['totalsteps']=0;}
if (!isset($_SESSION['maxstep'])) {$_SESSION['maxstep']=0;}
$_SESSION['prevstep']=$_SESSION['step'];

if (!(isset($_POST['saveall']) || isset($_POST['saveprompt']) || isset($_POST['loadall']) || isset($_GET['sid'])))
{
$_SESSION['prevstep']=$_SESSION['step'];
}
if (!isset($_SESSION['prevstep']))
{
$_SESSION['prevstep']=-1; // this only happens on re-load
}

if (isset($_SESSION['LEMpostKey']) && isset($_POST['LEMpostKey']) && $_POST['LEMpostKey'] != $_SESSION['LEMpostKey'])
{
Expand All @@ -106,7 +114,8 @@
{
LimeExpressionManager::StartSurvey($thissurvey['sid'], $surveyMode, $surveyOptions, false,$LEMdebugLevel);
$moveResult = LimeExpressionManager::JumpTo($_SESSION['step']+1,false,false); // if late in the survey, will re-validate contents, which may be overkill
unset($_SESSION['LEMtokenResume']);
unset($_SESSION['LEMtokenResume']);
unset($_SESSION['LEMreload']);
}
else
{
Expand Down

0 comments on commit 2c6a7f9

Please sign in to comment.