mirror of
https://github.com/moodle/moodle.git
synced 2025-04-20 16:04:25 +02:00
MDL-66008 core_calendar: fix behat failures
This commit is contained in:
parent
1946261fb3
commit
4d98566939
@ -3482,6 +3482,9 @@ function calendar_output_fragment_event_form($args) {
|
||||
if ($starttime) {
|
||||
$formoptions['starttime'] = $starttime;
|
||||
}
|
||||
// Let's check first which event types user can add.
|
||||
$eventtypes = calendar_get_allowed_event_types($courseid);
|
||||
$formoptions['eventtypes'] = $eventtypes;
|
||||
|
||||
if (is_null($eventid)) {
|
||||
if (!empty($courseid)) {
|
||||
@ -3492,9 +3495,6 @@ function calendar_output_fragment_event_form($args) {
|
||||
}
|
||||
}
|
||||
|
||||
// Let's check first which event types user can add.
|
||||
$eventtypes = calendar_get_allowed_event_types($courseid);
|
||||
$formoptions['eventtypes'] = $eventtypes;
|
||||
$mform = new \core_calendar\local\event\forms\create(
|
||||
null,
|
||||
$formoptions,
|
||||
|
Loading…
x
Reference in New Issue
Block a user