Skip to content

Commit

Permalink
MDL-81317 core_question: random questions broken after upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
cmegahan authored and Christopher Megahan committed Mar 21, 2024
1 parent 66b1733 commit 012ac3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -2283,7 +2283,7 @@ function xmldb_main_upgrade($oldversion) {
// Create the base data for the random questions in the set_references table.
// This covers most of the hard work in one go.
$concat = $DB->sql_concat("'{\"questioncategoryid\":\"'", 'q.category', "'\",\"includingsubcategories\":\"'",
'qs.includingsubcategories', "'\"}'");
'COALESCE(qs.includingsubcategories, 0)', "'\"}'");
$sql = <<<EOF
INSERT INTO {question_set_references}
(usingcontextid, component, questionarea, itemid, questionscontextid, filtercondition)
Expand Down

0 comments on commit 012ac3d

Please sign in to comment.