From f79a4158adb4cbc29da222fd142362204becc9c5 Mon Sep 17 00:00:00 2001 From: pichetp Date: Sat, 22 Aug 2009 14:59:46 +0000 Subject: [PATCH] MDL-19519 , MDL-1728 Adding database question_calculated_options final strings text will be added later after users comments --- question/type/calculated/datasetdefinitions_form.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/question/type/calculated/datasetdefinitions_form.php b/question/type/calculated/datasetdefinitions_form.php index 8960e8a936..5a0155e1d1 100644 --- a/question/type/calculated/datasetdefinitions_form.php +++ b/question/type/calculated/datasetdefinitions_form.php @@ -96,6 +96,14 @@ class question_dataset_dependent_definitions_form extends moodleform { $key++; } } + $mform->addElement('header', 'synchronizehdr', get_string("Synchronize the data from shared datasets with other questions in a quiz", $stringfile)); + $mform->addElement('checkbox', "synchronize", '', "For each question in a quiz using a given wild card {x..} from a shared dataset, wild card {x..}will be substituted by the same numerical value."); + if (isset($this->question->options)&& isset($this->question->options->synchronize) ){ + $mform->setDefault("synchronize", $this->question->options->synchronize); + } else { + $mform->setDefault("synchronize", 0 ); + } + $this->add_action_buttons(false, get_string('nextpage', 'qtype_calculated')); -- 2.39.5