MDL-39081 workshop mod: fixed missing setType error

This commit is contained in:
Rossiani Wijaya 2013-04-15 15:42:22 +08:00
parent b3661ab272
commit 167b2c3d1e
2 changed files with 2 additions and 1 deletions

View file

@ -56,6 +56,7 @@ class workshop_edit_accumulative_strategy_form extends workshop_edit_strategy_fo
for ($i = 0; $i < $norepeats; $i++) {
$mform->addElement('header', 'dimension'.$i, get_string('dimensionnumber', 'workshopform_accumulative', $i+1));
$mform->addElement('hidden', 'dimensionid__idx_'.$i);
$mform->setType('dimensionid__idx_'.$i, PARAM_INT);
$mform->addElement('editor', 'description__idx_'.$i.'_editor',
get_string('dimensiondescription', 'workshopform_accumulative'), '', $descriptionopts);
// todo replace modgrade with an advanced element (usability issue discussed with Olli)

View file

@ -63,7 +63,7 @@ class workshop_submission_form extends moodleform {
$mform->setType('edit', PARAM_INT);
$mform->addElement('hidden', 'example', 0);
$mform->setType('hidden', PARAM_INT);
$mform->setType('example', PARAM_INT);
$this->add_action_buttons();