From 18dcdd77631c2dc9ab7b4af84d176fa75e77faf8 Mon Sep 17 00:00:00 2001 From: Yan Kudriavtsev Date: Thu, 25 Nov 2021 22:17:32 +0200 Subject: [PATCH] MDL-69905 block: order of activities in the block Recent Activity The order of actions in the "Recent Actions" block has been changed to descending --- blocks/recent_activity/block_recent_activity.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blocks/recent_activity/block_recent_activity.php b/blocks/recent_activity/block_recent_activity.php index 0424b739e35..886d942a3a7 100644 --- a/blocks/recent_activity/block_recent_activity.php +++ b/blocks/recent_activity/block_recent_activity.php @@ -143,7 +143,7 @@ class block_recent_activity extends block_base { FROM {block_recent_activity} WHERE timecreated > ? AND courseid = ? GROUP BY cmid - ORDER BY MAX(timecreated) ASC"; + ORDER BY MAX(timecreated) DESC"; $params = array($timestart, $course->id); $logs = $DB->get_records_sql($sql, $params); if (isset($logs[0])) {