bug 4312 change default for tagsmoderation to 0 from NULL
resending with fixes Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
This commit is contained in:
parent
47f49d2e7f
commit
cfb61c76b8
2 changed files with 8 additions and 1 deletions
|
@ -204,7 +204,7 @@ INSERT INTO `systempreferences` (variable,value,options,explanation,type) VALUES
|
|||
('TagsExternalDictionary',NULL,'','Path on server to local ispell executable, used to set $Lingua::Ispell::path This dictionary is used as a \"whitelist\" of pre-allowed tags.',''),
|
||||
('TagsInputOnDetail','1','','Allow users to input tags from the detail page.', 'YesNo'),
|
||||
('TagsInputOnList', '0','','Allow users to input tags from the search results list.', 'YesNo'),
|
||||
('TagsModeration', NULL,'','Require tags from patrons to be approved before becoming visible.','YesNo'),
|
||||
('TagsModeration', '0','','Require tags from patrons to be approved before becoming visible.','YesNo'),
|
||||
('TagsShowOnDetail','10','','Number of tags to display on detail page. 0 is off.', 'Integer'),
|
||||
('TagsShowOnList', '6','','Number of tags to display on search results list. 0 is off.','Integer');
|
||||
|
||||
|
|
|
@ -3655,6 +3655,13 @@ if (C4::Context->preference('Version') < TransformToNum($DBversion)){
|
|||
SetVersion ($DBversion);
|
||||
}
|
||||
|
||||
$DBversion = 'XXX';
|
||||
if (C4::Context->preference('Version') < TransformToNum($DBversion)){
|
||||
$dbh->do("UPDATE systempreferences SET value = '0' WHERE variable = 'TagsModeration' AND value is NULL");
|
||||
print "Upgrade to $DBversion done (bug 4312 TagsModeration changed from NULL to 0)\n";
|
||||
SetVersion ($DBversion);
|
||||
}
|
||||
|
||||
|
||||
=item DropAllForeignKeys($table)
|
||||
|
||||
|
|
Loading…
Reference in a new issue