Skip to content

Commit

Permalink
MDL-39059 Set explicit boolean type of a hidden field in workshop ran…
Browse files Browse the repository at this point in the history
…dom allocator form
  • Loading branch information
mudrd8mz committed Apr 9, 2013
1 parent 422f68f commit 5be1be8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mod/workshop/allocation/random/settings_form.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ public function definition() {
$mform->setDefault('excludesamegroup', 0); $mform->setDefault('excludesamegroup', 0);
} else { } else {
$mform->addElement('hidden', 'excludesamegroup', 0); $mform->addElement('hidden', 'excludesamegroup', 0);
$mform->setType('excludesamegroup', PARAM_BOOL);
} }


$mform->addElement('checkbox', 'removecurrent', get_string('removecurrentallocations', 'workshopallocation_random')); $mform->addElement('checkbox', 'removecurrent', get_string('removecurrentallocations', 'workshopallocation_random'));
Expand Down

0 comments on commit 5be1be8

Please sign in to comment.