MDL-39059 Set explicit boolean type of a hidden field in workshop random allocator...
authorDavid Mudrák <david@moodle.com>
Tue, 9 Apr 2013 19:46:18 +0000 (21:46 +0200)
committerDavid Mudrák <david@moodle.com>
Tue, 9 Apr 2013 19:46:18 +0000 (21:46 +0200)
mod/workshop/allocation/random/settings_form.php

index ebd7028..b4798a7 100644 (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'));