Kaynağa Gözat

Fix save hotspot results on track_e_hotspot - refs #7705

Angel Fernando Quiroz Campos 9 yıl önce
ebeveyn
işleme
9cf92118c2
1 değiştirilmiş dosya ile 3 ekleme ve 0 silme
  1. 3 0
      main/exercice/exercise.class.php

+ 3 - 0
main/exercice/exercise.class.php

@@ -3053,9 +3053,12 @@ class Exercise
                             }
                         }
 
+                        $choice[$answerAutoId] = 0;
+
                         if ($choiceIsValid) {
                             $questionScore  += $answerWeighting;
                             $totalScore     += $answerWeighting;
+                            $choice[$answerAutoId] = 1;
                         }
                     }
                     break;