Merge branch 'MDL-38528' of git://github.com/timhunt/moodle
authorDamyon Wiese <damyon@moodle.com>
Tue, 26 Mar 2013 06:57:04 +0000 (14:57 +0800)
committerDamyon Wiese <damyon@moodle.com>
Tue, 26 Mar 2013 06:57:04 +0000 (14:57 +0800)
question/type/calculated/datasetdefinitions_form.php
question/type/calculated/datasetitems_form.php

index 45efea3..6e1158c 100644 (file)
@@ -71,7 +71,10 @@ class question_dataset_dependent_definitions_form extends question_wizard_form {
 
     protected function definition() {
         global $SESSION;
+
         $mform = $this->_form;
+        $mform->setDisableShortforms();
+
         $possibledatasets = $this->qtypeobj->find_dataset_names($this->question->questiontext);
         $mandatorydatasets = array();
         if (isset($this->question->options->answers)) {
index a4bb3ef..f1f4a7b 100644 (file)
@@ -111,6 +111,8 @@ class question_dataset_dependent_items_form extends question_wizard_form {
                 $labelsharedwildcard = get_string("sharedwildcard", "qtype_calculated");
 
         $mform =& $this->_form;
+        $mform->setDisableShortforms();
+
         $strquestionlabel = $this->qtypeobj->comment_header($this->question);
         if ($this->maxnumber != -1 ) {
             $this->noofitems = $this->maxnumber;