Skip to content

Commit

Permalink
Fixed issue #6106: Mandatory error shown when testing a question
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed May 28, 2012
1 parent aca8af3 commit a8e40e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qanda.php
Expand Up @@ -283,7 +283,7 @@ function retrieveAnswers($ia)
}
//If this question is mandatory but wasn't answered in the last page
//add a message HIGHLIGHTING the question
if (($_SESSION['step'] != $_SESSION['maxstep']) || ($_SESSION['step'] == $_SESSION['prevstep'])) {
if (($_SESSION['step'] != $_SESSION['maxstep']) || ($_SESSION['step'] == $_SESSION['prevstep']) && returnglobal('action')!='previewquestion') {
$mandatory_msg = mandatory_message($ia);
}
else {
Expand Down

0 comments on commit a8e40e3

Please sign in to comment.