Skip to content

Commit

Permalink
nextpageparam["forceregeneration"] was not implemented correctly line…
Browse files Browse the repository at this point in the history
… 582
  • Loading branch information
pichetp committed Mar 10, 2008
1 parent 82411ed commit d650e1a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions question/type/calculated/questiontype.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit d650e1a

Please sign in to comment.