Skip to content

Commit

Permalink
Fixed issue #9196: Can't update a token response if the last group wa…
Browse files Browse the repository at this point in the history
…s hidden
  • Loading branch information
c-schmitz committed Sep 10, 2014
1 parent c297ab1 commit e2b7f53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/controllers/survey/index.php
Expand Up @@ -527,7 +527,7 @@ function action()
{
$_SESSION['survey_'.$surveyid]['LEMtokenResume'] = true;
// If the response was completed and user is allowed to edit after completion start at the beginning and not at the last page - just makes more sense
if (!($oResponses[0]->submitdate && $thissurvey['alloweditaftercompletion'] == 'Y'))
if (!($oResponses->submitdate && $thissurvey['alloweditaftercompletion'] == 'Y'))
{
$_SESSION['survey_'.$surveyid]['step'] = $oResponse->lastpage;
}
Expand Down

0 comments on commit e2b7f53

Please sign in to comment.