Skip to content

Commit

Permalink
MDL-38528 qtype_calc* dataset forms: disable short-forms for now.
Browse files Browse the repository at this point in the history
At the moment using short-forms no these forms really does not work. In
future is may be possible to do a complete overhaul, but for now, just
disabling short-forms is a simple fix.
  • Loading branch information
timhunt committed Mar 22, 2013
1 parent 373a8e0 commit d6b8e19
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions question/type/calculated/datasetdefinitions_form.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -71,7 +71,10 @@ public function __construct($submiturl, $question) {


protected function definition() { protected function definition() {
global $SESSION; global $SESSION;

$mform = $this->_form; $mform = $this->_form;
$mform->setDisableShortforms();

$possibledatasets = $this->qtypeobj->find_dataset_names($this->question->questiontext); $possibledatasets = $this->qtypeobj->find_dataset_names($this->question->questiontext);
$mandatorydatasets = array(); $mandatorydatasets = array();
if (isset($this->question->options->answers)) { if (isset($this->question->options->answers)) {
Expand Down
2 changes: 2 additions & 0 deletions question/type/calculated/datasetitems_form.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ protected function definition() {
$labelsharedwildcard = get_string("sharedwildcard", "qtype_calculated"); $labelsharedwildcard = get_string("sharedwildcard", "qtype_calculated");


$mform =& $this->_form; $mform =& $this->_form;
$mform->setDisableShortforms();

$strquestionlabel = $this->qtypeobj->comment_header($this->question); $strquestionlabel = $this->qtypeobj->comment_header($this->question);
if ($this->maxnumber != -1 ) { if ($this->maxnumber != -1 ) {
$this->noofitems = $this->maxnumber; $this->noofitems = $this->maxnumber;
Expand Down

0 comments on commit d6b8e19

Please sign in to comment.