Fix showing resuls for calculated answers - refs #8237

1.10.x
Angel Fernando Quiroz Campos 9 years ago
parent 3f94d26026
commit 2160752128
  1. 6
      main/exercice/exercise.class.php

@ -3826,9 +3826,11 @@ class Exercise
$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++) {

Loading…
Cancel
Save