From: tjhunt Date: Tue, 14 Nov 2006 15:41:20 +0000 (+0000) Subject: MDL-7531 Fix SQL that does not work in Oracle. Thanks to Mark Hetherington for the... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=f9c92efef365b5a3d2e68775196fac022814e15a;p=moodle.git MDL-7531 Fix SQL that does not work in Oracle. Thanks to Mark Hetherington for the fix. Merged from MOODLE_17_STABLE. --- diff --git a/lib/questionlib.php b/lib/questionlib.php index f0c727af9e..8b2e5961ce 100644 --- a/lib/questionlib.php +++ b/lib/questionlib.php @@ -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);