Revert "Fix showing resuls for calculated answers - refs #8237"

This reverts commit 2160752128.
1.10.x
Angel Fernando Quiroz Campos 9 years ago
parent ee874accf2
commit ee763e8405
  1. 6
      main/exercice/exercise.class.php

@ -3826,11 +3826,9 @@ class Exercise
$queryfill = "SELECT answer FROM ".$TBL_TRACK_ATTEMPT." $queryfill = "SELECT answer FROM ".$TBL_TRACK_ATTEMPT."
WHERE WHERE
exe_id = '".$exeId."' AND exe_id = '".$exeId."' AND
question_id= ".intval($questionId); question_id= ".intval($questionId)."";
$resfill = Database::query($queryfill); $resfill = Database::query($queryfill);
$rowFill = Database::fetch_assoc($resfill); $answer = Database::result($resfill, 0, 'answer');
$answer = $rowFill['answer'];
$questionScore = $rowFill['marks'];
} }
for ($i = 0; $i < count($realCorrectTags); $i++) { for ($i = 0; $i < count($realCorrectTags); $i++) {

Loading…
Cancel
Save