MDL-18244 sql_length() - apply new function to resource names filter
This commit is contained in:
@@ -46,7 +46,7 @@
|
||||
cm.visible = 1 AND
|
||||
r.id = cm.instance AND
|
||||
cm.course = {$courseid}
|
||||
ORDER BY CHAR_LENGTH(r.name) DESC, cm.section ASC;";
|
||||
ORDER BY " . sql_length('r.name') . " DESC, cm.section ASC;";
|
||||
|
||||
if (!$resources = get_records_sql($resource_sql) ){
|
||||
$nothingtodo = true;
|
||||
|
||||
Reference in New Issue
Block a user