Skip to content

Commit

Permalink
MDL-40244 forms: added setType() for groupinfo in forum and wiki
Browse files Browse the repository at this point in the history
  • Loading branch information
Mary Evans authored and marinaglancy committed Nov 6, 2013
1 parent 0f57d55 commit fe48481
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions mod/forum/classes/post_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,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');
Expand Down
1 change: 1 addition & 0 deletions mod/wiki/create_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit fe48481

Please sign in to comment.