]> git.mjollnir.org Git - moodle.git/commitdiff
nextpageparam["forceregeneration"] was not implemented correctly line 582
authorpichetp <pichetp>
Mon, 10 Mar 2008 10:53:41 +0000 (10:53 +0000)
committerpichetp <pichetp>
Mon, 10 Mar 2008 10:53:41 +0000 (10:53 +0000)
question/type/calculated/questiontype.php

index 6ff0637b938ece19a721974c7c97f571a6e79f42..f87c9493e5d9f4f6673ec73a191f06ff0d0f9ec8 100644 (file)
@@ -579,8 +579,11 @@ class question_calculated_qtype extends question_dataset_dependent_questiontype
         global $CFG ;
         // max datasets = 100 items
         $max100 = 100 ;
-        $regenerate = optional_param('forceregeneration', 0, PARAM_BOOL);
-        // echo "<pre>"; print_r($fromform);
+        if(isset($fromform->nextpageparam["forceregeneration"])) { 
+            $regenerate = $fromform->nextpageparam["forceregeneration"];
+        }else{
+            $regenerate = 0 ;
+        }
         if (empty($question->options)) {
             $this->get_question_options($question);
         }