mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
MDL-45201 recent_activity: Fix set type notice in recent activity form
This commit is contained in:
parent
0401143193
commit
2b34a377ea
1 changed files with 2 additions and 0 deletions
|
@ -101,6 +101,8 @@ class recent_form extends moodleform {
|
|||
} else {
|
||||
// Default to no user.
|
||||
$mform->addElement('hidden', 'user', 0);
|
||||
$mform->setType('user', PARAM_INT);
|
||||
$mform->setConstant('user', 0);
|
||||
}
|
||||
|
||||
$options = array(''=>get_string('allactivities'));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue