Permalink
Browse files

MDL-39081 workshop mod: fixed missing setType error

  • Loading branch information...
1 parent b3661ab commit 167b2c3d1e0314752e4c21b123fd5de7438740d1 @rwijaya rwijaya committed Apr 15, 2013
Showing with 2 additions and 1 deletion.
  1. +1 −0 mod/workshop/form/accumulative/edit_form.php
  2. +1 −1 mod/workshop/submission_form.php
@@ -56,6 +56,7 @@ protected function definition_inner(&$mform) {
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)
@@ -63,7 +63,7 @@ function definition() {
$mform->setType('edit', PARAM_INT);
$mform->addElement('hidden', 'example', 0);
- $mform->setType('hidden', PARAM_INT);
+ $mform->setType('example', PARAM_INT);
$this->add_action_buttons();

0 comments on commit 167b2c3

Please sign in to comment.