]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-7531 Fix SQL that does not work in Oracle. Thanks to Mark Hetherington for the...
authortjhunt <tjhunt>
Tue, 14 Nov 2006 15:41:20 +0000 (15:41 +0000)
committertjhunt <tjhunt>
Tue, 14 Nov 2006 15:41:20 +0000 (15:41 +0000)
lib/questionlib.php

index f0c727af9e30fb29fd04310ca3155db12c5c2462..8b2e5961cee33a6dc72735636d8ceb9113b86868 100644 (file)
@@ -1480,7 +1480,7 @@ function question_category_select_menu($courseid, $published = false, $only_edit
             SELECT cat.*, c.shortname AS coursename 
             FROM {$CFG->prefix}question_categories cat, {$CFG->prefix}course c
             WHERE c.id = cat.course AND (cat.course = $courseid $publishsql)
-            ORDER BY parent, sortorder, name ASC");
+            ORDER BY cat.parent, cat.sortorder, cat.name ASC");
 
     $categories = add_indented_names($categories);