diff --git a/question/type/calculated/questiontype.php b/question/type/calculated/questiontype.php index 8327bc8c149..b962efe545b 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)";