mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-55956 mod_assign: Do not use API constant in upgrade
This commit is contained in:
parent
aabe41f359
commit
34f5a23e6a
@ -261,7 +261,8 @@ function xmldb_assign_upgrade($oldversion) {
|
||||
'groupid' => 0,
|
||||
'repeatid' => 0
|
||||
];
|
||||
$DB->set_field('event', 'priority', CALENDAR_EVENT_USER_OVERRIDE_PRIORITY, $params);
|
||||
// CALENDAR_EVENT_USER_OVERRIDE_PRIORITY has a value of 9999999.
|
||||
$DB->set_field('event', 'priority', 9999999, $params);
|
||||
|
||||
// Set priority for group overrides for existing assign events.
|
||||
$where = 'groupid IS NOT NULL';
|
||||
|
Loading…
x
Reference in New Issue
Block a user