Skip to content

Commit

Permalink
Fix iid in queries - refs BT#18452
Browse files Browse the repository at this point in the history
  • Loading branch information
AngelFQC committed May 5, 2021
1 parent b4ae2b5 commit 3428e54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main/exercise/exercise.class.php
Expand Up @@ -1214,7 +1214,7 @@ public function hasQuestion($questionId)
$sql = "SELECT q.iid
FROM $TBL_EXERCICE_QUESTION e
INNER JOIN $TBL_QUESTIONS q
ON e.question_id = q.id
ON e.question_id = q.iid
WHERE
q.iid = $questionId AND
e.c_id = {$this->course_id} AND
Expand Down Expand Up @@ -4648,7 +4648,7 @@ public function manage_answer(
$orderBy = ' ORDER BY correct ';
}

$sql = "SELECT iId, answer, correct, id_auto, ponderation
$sql = "SELECT iid, answer, correct, id_auto, ponderation
FROM $table_ans
WHERE
c_id = $course_id AND
Expand Down

0 comments on commit 3428e54

Please sign in to comment.