MDL-44333 quiz reports: use consitent name for user pref
authorTim Hunt <T.J.Hunt@open.ac.uk>
Sat, 17 May 2014 13:52:43 +0000 (14:52 +0100)
committerTim Hunt <T.J.Hunt@open.ac.uk>
Sat, 17 May 2014 13:52:43 +0000 (14:52 +0100)
The Marks for each question setting was not being saved properly as a
user preference.

mod/quiz/report/overview/overview_options.php

index e0c3699..57c1240 100644 (file)
@@ -74,7 +74,7 @@ class quiz_overview_options extends mod_quiz_attempts_report_options {
     public function setup_from_user_preferences() {
         parent::setup_from_user_preferences();
 
-        $this->slotmarks = get_user_preferences('quiz_report_overview_detailedmarks', $this->slotmarks);
+        $this->slotmarks = get_user_preferences('quiz_overview_slotmarks', $this->slotmarks);
     }
 
     public function update_user_preferences() {