MDL-29877 Grades - Remove hardcoded prefix from upgrade step.
This commit is contained in:
+1
-1
@@ -1144,7 +1144,7 @@ function xmldb_main_upgrade($oldversion) {
|
||||
|
||||
if ($oldversion < 2012062506.06) {
|
||||
// MDL-29877 Some bad restores created grade items with no category information.
|
||||
$sql = "UPDATE mdl_grade_items
|
||||
$sql = "UPDATE {grade_items}
|
||||
SET categoryid = courseid
|
||||
WHERE itemtype <> 'course' and itemtype <> 'category'
|
||||
AND categoryid IS NULL";
|
||||
|
||||
Reference in New Issue
Block a user