mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 20:42:22 +02:00
MDL-45201 recent_activity: Fix set type notice in recent activity form
This commit is contained in:
parent
0401143193
commit
2b34a377ea
@ -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…
x
Reference in New Issue
Block a user