Permalink
Browse files

MDL-29877 Grades - version bump for upgrade step.

And whitespace...
  • Loading branch information...
1 parent d4a997b commit 870f78b0fd766e45c42ee746d38981c9545b4826 @damyon damyon committed Apr 12, 2013
Showing with 4 additions and 4 deletions.
  1. +2 −2 lib/db/upgrade.php
  2. +1 −1 lib/grade/grade_category.php
  3. +1 −1 version.php
View
@@ -1687,14 +1687,14 @@ function xmldb_main_upgrade($oldversion) {
upgrade_main_savepoint(true, 2012120303.02);
}
- if ($oldversion < 2012120301.18) {
+ if ($oldversion < 2012120303.06) {
// MDL-29877 Some bad restores created grade items with no category information.
$sql = "UPDATE mdl_grade_items
SET categoryid = courseid
WHERE itemtype <> 'course' and itemtype <> 'category'
AND categoryid IS NULL";
$DB->execute($sql);
- upgrade_main_savepoint(true, 2012120301.18);
+ upgrade_main_savepoint(true, 2012120303.06);
}
return true;
@@ -1156,7 +1156,7 @@ public function get_children($include_category_items=false) {
$categoryid = $item->categoryid;
if (empty($categoryid)) {
debugging('Found a grade item that isnt in a category');
- }
+ }
}
// prevent problems with duplicate sortorders in db
View
@@ -30,7 +30,7 @@
defined('MOODLE_INTERNAL') || die();
-$version = 2012120303.05; // 20121203 = branching date YYYYMMDD - do not modify!
+$version = 2012120303.06; // 20121203 = branching date YYYYMMDD - do not modify!
// RR = release increments - 00 in DEV branches
// .XX = incremental changes

0 comments on commit 870f78b

Please sign in to comment.