mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Now upgrade and restore processes enable editalways for old
secondary glossaries. Smooth transition. Thanks, Martin! :-) Bug 1445 (http://moodle.org/bugs/bug.php?op=show&bugid=1445)
This commit is contained in:
parent
f8559be0fc
commit
cd2bf3309c
4 changed files with 19 additions and 1 deletions
|
@ -339,6 +339,11 @@ function glossary_upgrade($oldversion) {
|
|||
if ( $oldversion < 2004080800) {
|
||||
table_column("glossary","","editalways","tinyint","2", "unsigned", "0", "", "entbypage");
|
||||
}
|
||||
|
||||
//Activate editalways in old secondary glossaries (old behaviour)
|
||||
if ( $oldversion < 2004080900) {
|
||||
set_field('glossary','editalways','1','mainglossary','0');
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -101,6 +101,11 @@ function glossary_upgrade($oldversion) {
|
|||
table_column("glossary","","editalways","integer","2", "unsigned", "0", "", "entbypage");
|
||||
}
|
||||
|
||||
//Activate editalways in old secondary glossaries (old behaviour)
|
||||
if ( $oldversion < 2004080900) {
|
||||
set_field('glossary','editalways','1','mainglossary','0');
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue