MDL-15610 Merged label log display fix from 1.9

This commit is contained in:
moodler 2008-07-11 02:56:29 +00:00
parent b0374a1692
commit c1ac9e73b6
3 changed files with 6 additions and 3 deletions

View File

@ -23,8 +23,8 @@
<STATEMENTS>
<STATEMENT NAME="insert log_display" TYPE="insert" TABLE="log_display" COMMENT="Initial insert of records on table log_display">
<SENTENCES>
<SENTENCE TEXT="(module, action, mtable, field) VALUES ('label', 'add', 'quiz', 'name')" />
<SENTENCE TEXT="(module, action, mtable, field) VALUES ('label', 'update', 'quiz', 'name')" />
<SENTENCE TEXT="(module, action, mtable, field) VALUES ('label', 'add', 'label', 'name')" />
<SENTENCE TEXT="(module, action, mtable, field) VALUES ('label', 'update', 'label', 'name')" />
</SENTENCES>
</STATEMENT>
</STATEMENTS>

View File

@ -32,6 +32,9 @@ function xmldb_label_upgrade($oldversion=0) {
/// }
//===== 1.9.0 upgrade line ======//
if ($oldversion < 2007101510) {
execute_sql("UPDATE {$CFG->prefix}log_display SET mtable = 'label' WHERE module = 'label'", 'false');
}
return $result;
}

View File

@ -5,7 +5,7 @@
/// This fragment is called by moodle_needs_upgrading() and /admin/index.php
/////////////////////////////////////////////////////////////////////////////////
$module->version = 2007101509; // The current module version (Date: YYYYMMDDXX)
$module->version = 2007101510; // The current module version (Date: YYYYMMDDXX)
$module->requires = 2007101509; // Requires this Moodle version
$module->cron = 0; // Period for cron to check this module (secs)