Skip to content

Commit

Permalink
Fixed issue: Database exception is shown when trying to reload respon…
Browse files Browse the repository at this point in the history
…ses for/resume an inactive survey
  • Loading branch information
c-schmitz committed Oct 9, 2020
1 parent 94c4719 commit 2abb576
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions application/controllers/survey/index.php
Expand Up @@ -384,6 +384,10 @@ public function action()
$aLoadErrorMsg['password'] = gT("You did not provide a password.");
}

if (!$isSurveyActive) {
$aLoadErrorMsg['password'] = gT("You cannot reload responses because the survey is not activated, yet.");
}

// if security question answer is incorrect
// Not called if scid is set in GET params (when using email save/reload reminder URL)
// && Yii::app()->request->isPostRequest ?
Expand Down

0 comments on commit 2abb576

Please sign in to comment.