nextpageparam["forceregeneration"] was not implemented correctly line 582 merging

from head
This commit is contained in:
pichetp
2008-03-10 12:00:58 +00:00
parent 2b00d67a44
commit 4272fc068c
+5 -2
View 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);
}