Permalink
Browse files

MDL-37792 Conditions: Fix upgrade step in previous patch

  • Loading branch information...
1 parent db0c7b4 commit 382b3d759670745ccabf5728144d01d20cff4855 @damyon damyon committed Feb 26, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/db/upgrade.php
View
6 lib/db/upgrade.php
@@ -1601,9 +1601,9 @@ function xmldb_main_upgrade($oldversion) {
}
if ($oldversion < 2012120301.13) {
- // Delete entries regarding invalid 'idnumber' option which breaks course.
- $DB->delete_records('course_sections_avail_fields', array('userfield' => 'idnumber'));
- $DB->delete_records('course_modules_avail_fields', array('userfield' => 'idnumber'));
+ // Delete entries regarding invalid 'interests' option which breaks course.
+ $DB->delete_records('course_sections_avail_fields', array('userfield' => 'interests'));
+ $DB->delete_records('course_modules_avail_fields', array('userfield' => 'interests'));
// Clear course cache (will be rebuilt on first visit) in case of changes to these.
rebuild_course_cache(0, true);

0 comments on commit 382b3d7

Please sign in to comment.