From: pichetp Date: Mon, 10 Mar 2008 10:53:41 +0000 (+0000) Subject: nextpageparam["forceregeneration"] was not implemented correctly line 582 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=d650e1a3158d7ae473341e9f54824f673175aae4;p=moodle.git nextpageparam["forceregeneration"] was not implemented correctly line 582 --- diff --git a/question/type/calculated/questiontype.php b/question/type/calculated/questiontype.php index 6ff0637b93..f87c9493e5 100644 --- a/question/type/calculated/questiontype.php +++ b/question/type/calculated/questiontype.php @@ -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 "
"; print_r($fromform);
+        if(isset($fromform->nextpageparam["forceregeneration"])) { 
+            $regenerate = $fromform->nextpageparam["forceregeneration"];
+        }else{
+            $regenerate = 0 ;
+        }
         if (empty($question->options)) {
             $this->get_question_options($question);
         }