Kaynağa Gözat

Fix a little big bug - refs #7212

Imanol Losada 10 yıl önce
ebeveyn
işleme
a0608f8afe
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 2
      main/exercice/calculated_answer.class.php

+ 2 - 2
main/exercice/calculated_answer.class.php

@@ -260,7 +260,7 @@ class CalculatedAnswer extends Question
      */
     public function isAnswered()
     {
-        $table = Database::get_main_table(TABLE_STATISTIC_TRACK_E_ATTEMPT);
+        $table = Database::get_main_table(TABLE_STATISTIC_TRACK_E_ATTEMPT);var_dump($this->course);
         $result = Database::select(
             'question_id',
             $table,
@@ -268,7 +268,7 @@ class CalculatedAnswer extends Question
                 'where' => array(
                     'question_id = ? AND course_code = ?' => array(
                         $this->id,
-                        $this->course['id']
+                        $this->course['code']
                     )
                 )
             )