Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

… 582
  • Loading branch information...
commit d650e1a3158d7ae473341e9f54824f673175aae4 1 parent 82411ed
pichetp authored
Showing with 5 additions and 2 deletions.
  1. +5 −2 question/type/calculated/questiontype.php
View
7 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);
}
Please sign in to comment.
Something went wrong with that request. Please try again.