mirror of
https://github.com/moodle/moodle.git
synced 2025-04-18 23:15:38 +02:00
Merge branch 'MDL-34255' of git://github.com/rwijaya/moodle
This commit is contained in:
commit
1383794b35
@ -123,10 +123,10 @@ if ($eventid !== 0) {
|
||||
$event = new stdClass();
|
||||
$event->action = $action;
|
||||
$event->course = $courseid;
|
||||
$event->courseid = $courseid;
|
||||
$event->timeduration = 0;
|
||||
if ($formoptions->eventtypes->courses) {
|
||||
if (!$issite) {
|
||||
$event->courseid = $courseid;
|
||||
$event->eventtype = 'course';
|
||||
} else {
|
||||
unset($formoptions->eventtypes->courses);
|
||||
|
Loading…
x
Reference in New Issue
Block a user