MDL-39606 question: Fix missing setType warnings

This commit is contained in:
Frederic Massart 2013-05-10 15:06:30 +08:00
parent dec909fcdd
commit 7d1904de1d
2 changed files with 8 additions and 7 deletions

View file

@ -183,6 +183,7 @@ class question_dataset_dependent_items_form extends question_wizard_form {
$answer->answer);
$mform->addElement('text', 'tolerance['.$key.']',
get_string('tolerance', 'qtype_calculated'));
$mform->setType('tolerance['.$key.']', PARAM_RAW);
$mform->setAdvanced('tolerance['.$key.']', true);
$mform->addElement('select', 'tolerancetype['.$key.']',
get_string('tolerancetype', 'qtype_numerical'),