Skip to content

Commit

Permalink
MDL-38444 Saving datasets from edit_calculatedsimple_form.php
Browse files Browse the repository at this point in the history
Bypassing the 3 steps savequestion() of calculated.
  • Loading branch information
ppichet committed Mar 17, 2013
1 parent 29f8c09 commit 1e9f48c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion question/type/calculated/questiontype.php
Expand Up @@ -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;
}
Expand Down

0 comments on commit 1e9f48c

Please sign in to comment.