Skip to content

Commit

Permalink
course sorting MDL-21011 "Re-sort courses by name" button eventually …
Browse files Browse the repository at this point in the history
…lead sortorder to hit column maximum value
  • Loading branch information
Andrew Davis committed Jan 8, 2010
1 parent 1ca30d5 commit 7cf7a14
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions lib/db/upgrade.php
Expand Up @@ -3305,8 +3305,9 @@ function xmldb_main_upgrade($oldversion=0) {
$i += 1000;
$old_category = $course->category;
}
$course->sortorder = $i++;
execute_sql("UPDATE {$CFG->prefix}course SET sortorder=$i WHERE id={$course->id}");
$c->id = $course->id;
$c->sortorder = $i++;
update_record('course',$c);
}
}
unset($courses);
Expand Down
2 changes: 1 addition & 1 deletion version.php
Expand Up @@ -6,7 +6,7 @@
// This is compared against the values stored in the database to determine
// whether upgrades should be performed (see lib/db/*.php)

$version = 2007101571; // YYYYMMDD = date of the 1.9 branch (don't change)
$version = 2007101571.01; // YYYYMMDD = date of the 1.9 branch (don't change)
// X = release number 1.9.[0,1,2,3,4,5...]
// Y.YY = micro-increments between releases

Expand Down

0 comments on commit 7cf7a14

Please sign in to comment.