mirror of
https://github.com/moodle/moodle.git
synced 2025-04-14 13:02:07 +02:00
MDL-58994 core_calendar: Coalesce event sort field
There are situations where we need to sort events on a field called "timesort", but sometimes it is not set. So we can fall back to "timestart" in this case.
This commit is contained in:
parent
17fb1d84a2
commit
919b5c95e6
@ -164,7 +164,7 @@ class event_vault implements event_vault_interface {
|
||||
$coursesfilter,
|
||||
$where,
|
||||
$params,
|
||||
"e.timesort ASC, e.id ASC",
|
||||
"COALESCE(e.timesort, e.timestart) ASC, e.id ASC",
|
||||
$offset,
|
||||
$limitnum,
|
||||
$ignorehidden
|
||||
|
Loading…
x
Reference in New Issue
Block a user