MDL-39059 Set explicit boolean type of a hidden field in workshop random allocator form

This commit is contained in:
David Mudrák 2013-04-09 21:46:18 +02:00
parent 422f68fb86
commit 5be1be85f4

View File

@ -80,6 +80,7 @@ class workshop_random_allocator_form extends moodleform {
$mform->setDefault('excludesamegroup', 0);
} else {
$mform->addElement('hidden', 'excludesamegroup', 0);
$mform->setType('excludesamegroup', PARAM_BOOL);
}
$mform->addElement('checkbox', 'removecurrent', get_string('removecurrentallocations', 'workshopallocation_random'));