mirror of
https://github.com/moodle/moodle.git
synced 2025-08-03 16:13:28 +02:00
MDL-38528 qtype_calc* dataset forms: disable short-forms for now.
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.
This commit is contained in:
parent
373a8e052c
commit
d6b8e1923a
2 changed files with 5 additions and 0 deletions
|
@ -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)) {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue