Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed issue #18585: Click again on link by email submit again the survey #2851

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 2 additions & 4 deletions application/controllers/survey/index.php
Expand Up @@ -210,14 +210,12 @@ public function action()
unset($clienttoken);
}

// No test for response update
if ($this->isSurveyFinished($surveyid) && ($thissurvey['alloweditaftercompletion'] != 'Y' || $thissurvey['tokenanswerspersistence'] != 'Y')) {
/* Reset session if survey is set to finished in all condition issue #18585 */
if ($this->isSurveyFinished($surveyid)) {
$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