Permalink
Browse files

nextpageparam["forceregeneration"] was not implemented correctly line…

… 582 merging

 from head
  • Loading branch information...
pichetp
pichetp committed Mar 10, 2008
1 parent 2b00d67 commit 4272fc068ca9c228c0ab86f15e03d73c858a265a
Showing with 5 additions and 2 deletions.
  1. +5 −2 question/type/calculated/questiontype.php
@@ -579,8 +579,11 @@ function save_dataset_items($question, $fromform){
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);
}

0 comments on commit 4272fc0

Please sign in to comment.