Merge branch 'wip-MDL-60241-33' of git://github.com/marinaglancy/moodle into MOODLE_33_STABLE

This commit is contained in:
Eloy Lafuente (stronk7)
2018-03-12 18:29:00 +01:00
4 changed files with 22 additions and 2 deletions
+10
View File
@@ -46,5 +46,15 @@ function xmldb_format_topics_upgrade($oldversion) {
// Automatically generated Moodle v3.3.0 release upgrade line.
// Put any upgrade step following this.
if ($oldversion < 2017051501) {
// During upgrade to Moodle 3.3 it could happen that general section (section 0) became 'invisible'.
// It should always be visible.
$DB->execute("UPDATE {course_sections} SET visible=1 WHERE visible=0 AND section=0 AND course IN
(SELECT id FROM {course} WHERE format=?)", ['topics']);
upgrade_plugin_savepoint(true, 2017051501, 'format', 'topics');
}
return true;
}
+1 -1
View File
@@ -25,6 +25,6 @@
defined('MOODLE_INTERNAL') || die();
$plugin->version = 2017051500; // The current plugin version (Date: YYYYMMDDXX).
$plugin->version = 2017051501; // The current plugin version (Date: YYYYMMDDXX).
$plugin->requires = 2017050500; // Requires this Moodle version.
$plugin->component = 'format_topics'; // Full name of the plugin (used for diagnostics).
+10
View File
@@ -82,5 +82,15 @@ function xmldb_format_weeks_upgrade($oldversion) {
// Automatically generated Moodle v3.3.0 release upgrade line.
// Put any upgrade step following this.
if ($oldversion < 2017051501) {
// During upgrade to Moodle 3.3 it could happen that general section (section 0) became 'invisible'.
// It should always be visible.
$DB->execute("UPDATE {course_sections} SET visible=1 WHERE visible=0 AND section=0 AND course IN
(SELECT id FROM {course} WHERE format=?)", ['weeks']);
upgrade_plugin_savepoint(true, 2017051501, 'format', 'weeks');
}
return true;
}
+1 -1
View File
@@ -25,6 +25,6 @@
defined('MOODLE_INTERNAL') || die();
$plugin->version = 2017051500; // The current plugin version (Date: YYYYMMDDXX).
$plugin->version = 2017051501; // The current plugin version (Date: YYYYMMDDXX).
$plugin->requires = 2017050500; // Requires this Moodle version.
$plugin->component = 'format_weeks'; // Full name of the plugin (used for diagnostics).