Skip to content

Commit

Permalink
Revert "Fixed issue #18585: Click again on link by email submit again…
Browse files Browse the repository at this point in the history
… the survey"

This reverts commit bd86ce3.
  • Loading branch information
Shnoulle committed Jan 18, 2023
1 parent bd86ce3 commit d5429f4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions application/controllers/survey/index.php
Expand Up @@ -210,12 +210,14 @@ public function action()
unset($clienttoken);
}

/* Reset session if survey is set to finished in all condition issue #18585 */
if ($this->isSurveyFinished($surveyid)) {
// No test for response update
if ($this->isSurveyFinished($surveyid) && ($thissurvey['alloweditaftercompletion'] != 'Y' || $thissurvey['tokenanswerspersistence'] != 'Y')) {
$aReloadUrlParam = array('lang' => App()->language, 'newtest' => 'Y');

if (!empty($clienttoken)) {
$aReloadUrlParam['token'] = $clienttoken;
}

$aErrors = array(gT('Previous session is set to be finished.'));
$aMessage = array(gT('Your browser reports that it was used previously to answer this survey. We are resetting the session so that you can start from the beginning.'),);
$aUrl = array(
Expand Down

1 comment on commit d5429f4

@Shnoulle
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oups, sorry … didn't create branch before push

Please sign in to comment.