Merge branch 'MDL-39081' of git://github.com/rwijaya/moodle
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user