diff --git a/admin/registration/forms.php b/admin/registration/forms.php index 5f89d0c0d9b..ddf2db65bd8 100644 --- a/admin/registration/forms.php +++ b/admin/registration/forms.php @@ -422,12 +422,12 @@ class site_registration_form extends moodleform { $mform->addElement('checkbox', 'badges', '', " " . get_string('badgesnumber', 'hub', $badges)); $mform->setDefault('badges', $badgesnumber != -1); - $mform->setType('resources', PARAM_INT); + $mform->setType('badges', PARAM_INT); $mform->addElement('checkbox', 'issuedbadges', '', " " . get_string('issuedbadgesnumber', 'hub', $issuedbadges)); $mform->setDefault('issuedbadges', $issuedbadgesnumber != -1); - $mform->setType('resources', PARAM_INT); + $mform->setType('issuedbadges', PARAM_INT); $mform->addElement('checkbox', 'participantnumberaverage', '', " " . get_string('participantnumberaverage', 'hub', $participantnumberaverage));