From: pichetp Date: Sun, 13 Sep 2009 13:49:50 +0000 (+0000) Subject: MDL-19519 , MDL-1728 setting correctly synchonize value when saving question X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=bb02e41fe2e1dd1088e205ea8519cdb02db769e1;p=moodle.git MDL-19519 , MDL-1728 setting correctly synchonize value when saving question from datasetdefinitions_form.php --- diff --git a/question/type/calculated/questiontype.php b/question/type/calculated/questiontype.php index 8327bc8c14..b962efe545 100644 --- a/question/type/calculated/questiontype.php +++ b/question/type/calculated/questiontype.php @@ -629,7 +629,11 @@ class question_calculated_qtype extends default_questiontype { $options = new stdClass; $options->question = $question->id; } - $options->synchronize = $form->synchronize; + if($form->synchronize == 1 ){ + $options->synchronize = $form->synchronize; + }else { + $options->synchronize = 0 ; + } if ($update) { if (!$DB->update_record("question_calculated_options", $options)) { $result->error = "Could not update calculated question options! (id=$options->id)";