MDL-14160 SQL in get_categories_for_contexts does not work on Oracle. Thanks to Adrian Smith and Francois Marier for the fix.
This commit is contained in:
+1
-1
@@ -1927,7 +1927,7 @@ function question_make_default_categories($contexts) {
|
||||
function get_categories_for_contexts($contexts, $sortorder = 'parent, sortorder, name ASC') {
|
||||
global $CFG;
|
||||
return get_records_sql("
|
||||
SELECT *, (SELECT count(1) FROM {$CFG->prefix}question q
|
||||
SELECT c.*, (SELECT count(1) FROM {$CFG->prefix}question q
|
||||
WHERE c.id = q.category AND q.hidden='0' AND q.parent='0') as questioncount
|
||||
FROM {$CFG->prefix}question_categories c
|
||||
WHERE c.contextid IN ($contexts)
|
||||
|
||||
Reference in New Issue
Block a user