Skip to content

Commit

Permalink
25211
Browse files Browse the repository at this point in the history
  • Loading branch information
lukastocker committed Oct 16, 2023
1 parent b89ca40 commit 11a31e9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Modules/Survey/Execution/class.ilSurveyExecutionGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,11 @@ public function saveUserInput(
} else {
$this->tpl->setOnScreenMessage('failure', $this->lng->txt("svy_page_errors"), true);
}
} elseif (($page_error === 0) && (strcmp($navigationDirection, "previous") === 0)) {
$page_error = 1;
$this->tpl->setOnScreenMessage('failure',
$this->lng->txt("You already filled out this survey question. To go back to the previous question please clear the question. <a class='btn btn-default'>Clear answer and go back</a>"), true);

} else {
$page_error = 0;
$this->run_manager->clearErrors();
Expand Down

0 comments on commit 11a31e9

Please sign in to comment.