Skip to content
Browse files

MDL-40244 forms: added setType() for groupinfo in forum and wiki

  • Loading branch information...
1 parent b7a1f71 commit 1ba20f559410ef9172329f8d3ed75be5ffe74a61 @lazydaisy lazydaisy committed with marinaglancy Nov 1, 2013
Showing with 2 additions and 0 deletions.
  1. +1 −0 mod/forum/post_form.php
  2. +1 −0 mod/wiki/create_form.php
View
1 mod/forum/post_form.php
@@ -147,6 +147,7 @@ function definition() {
}
$mform->addElement('select','groupinfo', get_string('group'), $groupinfo);
$mform->setDefault('groupinfo', $post->groupid);
+ $mform->setType('groupinfo', PARAM_INT);
} else {
if (empty($post->groupid)) {
$groupname = get_string('allparticipants');
View
1 mod/wiki/create_form.php
@@ -71,6 +71,7 @@ protected function definition() {
if (count($groupinfo) > 1) {
$mform->addElement('select', 'groupinfo', get_string('group'), $groupinfo);
$mform->setDefault('groupinfo', $this->_customdata['groups']->currentgroup);
+ $mform->setType('groupinfo', PARAM_INT);
} else {
$groupid = key($groupinfo);
$groupname = $groupinfo[$groupid];

0 comments on commit 1ba20f5

Please sign in to comment.
Something went wrong with that request. Please try again.