Skip to content

Commit

Permalink
MDL-45201 recent_activity: Fix set type notice in recent activity form
Browse files Browse the repository at this point in the history
  • Loading branch information
ankitagarwal committed May 5, 2014
1 parent 0401143 commit 2b34a37
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions course/recent_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ function definition() {
} else {
// Default to no user.
$mform->addElement('hidden', 'user', 0);
$mform->setType('user', PARAM_INT);
$mform->setConstant('user', 0);
}

$options = array(''=>get_string('allactivities'));
Expand Down

0 comments on commit 2b34a37

Please sign in to comment.