From 46b45c29207404588f4d23763367bb487bc39fd4 Mon Sep 17 00:00:00 2001 From: Angel Fernando Quiroz Campos Date: Mon, 15 Jan 2024 18:29:02 -0500 Subject: [PATCH] Internal: Database: Fix queries to get course tools with name vs title - refs #3581 #470 --- public/main/inc/lib/urlmanager.lib.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/main/inc/lib/urlmanager.lib.php b/public/main/inc/lib/urlmanager.lib.php index a243514d35..4d57e2d95c 100644 --- a/public/main/inc/lib/urlmanager.lib.php +++ b/public/main/inc/lib/urlmanager.lib.php @@ -354,12 +354,12 @@ class UrlManager $where = " WHERE $table_url_rel_usergroup.access_url_id = ".$urlId; } - $sql = "SELECT u.id, u.name, access_url_id + $sql = "SELECT u.id, u.title, access_url_id FROM $table_user_group u INNER JOIN $table_url_rel_usergroup ON $table_url_rel_usergroup.usergroup_id = u.id $where - ORDER BY name"; + ORDER BY u.title"; $result = Database::query($sql); $courses = Database::store_result($result); @@ -393,7 +393,7 @@ class UrlManager INNER JOIN $table_url_rel ON $table_url_rel.course_category_id = u.id $where - ORDER BY name"; + ORDER BY u.title"; $result = Database::query($sql); $courses = Database::store_result($result, 'ASSOC');