Pārlūkot izejas kodu

Important - Alter Exercise::getQuestionListPagination() query to fix issue with questions list - JOIN between c_quiz_question and c_quiz_rel_question was not made to be made on q.iid, but on q.id as the q.c_id value was part of the query.

Yannick Warnier 8 gadi atpakaļ
vecāks
revīzija
063c5f5406
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      main/exercise/exercise.class.php

+ 1 - 1
main/exercise/exercise.class.php

@@ -581,7 +581,7 @@ class Exercise
 
             $sql = "SELECT q.iid
                     FROM $TBL_EXERCICE_QUESTION e INNER JOIN $TBL_QUESTIONS  q
-                        ON (e.question_id = q.iid AND e.c_id = ".$this->course_id." )
+                        ON (e.question_id = q.id AND e.c_id = ".$this->course_id." )
 					WHERE e.exercice_id	= '".Database::escape_string($this->id)."'
 					";