Skip to content

Commit

Permalink
Fix showing resuls for calculated answers - refs #8237
Browse files Browse the repository at this point in the history
  • Loading branch information
AngelFQC committed May 19, 2016
1 parent 3f94d26 commit 2160752
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions main/exercice/exercise.class.php
Expand Up @@ -3826,9 +3826,11 @@ public function manage_answer(
$queryfill = "SELECT answer FROM ".$TBL_TRACK_ATTEMPT."
WHERE
exe_id = '".$exeId."' AND
question_id= ".intval($questionId)."";
question_id= ".intval($questionId);
$resfill = Database::query($queryfill);
$answer = Database::result($resfill, 0, 'answer');
$rowFill = Database::fetch_assoc($resfill);
$answer = $rowFill['answer'];
$questionScore = $rowFill['marks'];
}

for ($i = 0; $i < count($realCorrectTags); $i++) {
Expand Down

0 comments on commit 2160752

Please sign in to comment.