浏览代码

Fix save hotspot results on track_e_hotspot - refs #7705

Angel Fernando Quiroz Campos 9 年之前
父节点
当前提交
9cf92118c2
共有 1 个文件被更改,包括 3 次插入0 次删除
  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;