Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-38444 Saving datasets from edit_calculatedsimple_form.php

Bypassing the 3 steps savequestion() of calculated.
  • Loading branch information...
commit e605209ad645bfb5407eed19ecd005dcdbb16e94 1 parent 7112729
@ppichet ppichet authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  question/type/calculated/questiontype.php
View
2  question/type/calculated/questiontype.php
@@ -587,7 +587,7 @@ public function addnamecategory(&$question) {
*/
public function save_question($question, $form) {
global $DB;
- if ($this->wizardpagesnumber() == 1) {
+ if ($this->wizardpagesnumber() == 1 || $question->qtype == 'calculatedsimple') {
$question = parent::save_question($question, $form);
return $question;
}
Please sign in to comment.
Something went wrong with that request. Please try again.