MDL-38444 Saving datasets from edit_calculatedsimple_form.php

Bypassing the 3 steps savequestion() of calculated.
This commit is contained in:
ppichet
2013-03-16 23:36:44 -04:00
parent 7112729206
commit e605209ad6
+1 -1
View File
@@ -587,7 +587,7 @@ class qtype_calculated extends question_type {
*/
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;
}