Skip to content
Browse files

MDL-29877 Grades - version bump for upgrade step.

And whitespace...
  • Loading branch information...
1 parent d3b880b commit 726e41abaad8812a5755c18111827cc94ebe592f @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
4 lib/db/upgrade.php
@@ -1142,14 +1142,14 @@ function xmldb_main_upgrade($oldversion) {
upgrade_main_savepoint(true, 2012062506.02);
}
- if ($oldversion < 2012062506.04) {
+ if ($oldversion < 2012062506.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, 2012062506.04);
+ upgrade_main_savepoint(true, 2012062506.06);
}
return true;
View
2 lib/grade/grade_category.php
@@ -1160,7 +1160,7 @@ public function get_children($include_category_items=false) {
// prevent problems with duplicate sortorders in db
$sortorder = $item->sortorder;
- while (array_key_exists($categoryid, $cats)
+ while (array_key_exists($categoryid, $cats)
&& array_key_exists($sortorder, $cats[$categoryid]->children)) {
$sortorder++;
View
2 version.php
@@ -30,7 +30,7 @@
defined('MOODLE_INTERNAL') || die();
-$version = 2012062506.05; // YYYYMMDD = weekly release date of this DEV branch
+$version = 2012062506.06; // YYYYMMDD = weekly release date of this DEV branch
// RR = release increments - 00 in DEV branches
// .XX = incremental changes

0 comments on commit 726e41a

Please sign in to comment.
Something went wrong with that request. Please try again.