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 22:39:52 -04:00
parent d43ba3caf6
commit 475ba4478d
+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;
}