mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-39081 workshop mod: fixed missing setType error
This commit is contained in:
parent
b3661ab272
commit
167b2c3d1e
2 changed files with 2 additions and 1 deletions
|
@ -56,6 +56,7 @@ class workshop_edit_accumulative_strategy_form extends workshop_edit_strategy_fo
|
||||||
for ($i = 0; $i < $norepeats; $i++) {
|
for ($i = 0; $i < $norepeats; $i++) {
|
||||||
$mform->addElement('header', 'dimension'.$i, get_string('dimensionnumber', 'workshopform_accumulative', $i+1));
|
$mform->addElement('header', 'dimension'.$i, get_string('dimensionnumber', 'workshopform_accumulative', $i+1));
|
||||||
$mform->addElement('hidden', 'dimensionid__idx_'.$i);
|
$mform->addElement('hidden', 'dimensionid__idx_'.$i);
|
||||||
|
$mform->setType('dimensionid__idx_'.$i, PARAM_INT);
|
||||||
$mform->addElement('editor', 'description__idx_'.$i.'_editor',
|
$mform->addElement('editor', 'description__idx_'.$i.'_editor',
|
||||||
get_string('dimensiondescription', 'workshopform_accumulative'), '', $descriptionopts);
|
get_string('dimensiondescription', 'workshopform_accumulative'), '', $descriptionopts);
|
||||||
// todo replace modgrade with an advanced element (usability issue discussed with Olli)
|
// todo replace modgrade with an advanced element (usability issue discussed with Olli)
|
||||||
|
|
|
@ -63,7 +63,7 @@ class workshop_submission_form extends moodleform {
|
||||||
$mform->setType('edit', PARAM_INT);
|
$mform->setType('edit', PARAM_INT);
|
||||||
|
|
||||||
$mform->addElement('hidden', 'example', 0);
|
$mform->addElement('hidden', 'example', 0);
|
||||||
$mform->setType('hidden', PARAM_INT);
|
$mform->setType('example', PARAM_INT);
|
||||||
|
|
||||||
$this->add_action_buttons();
|
$this->add_action_buttons();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue