Bug 14233: Set default for NoticesLog to 0

To prevent a warning on the about page:
 System preference 'NoticesLog' must be '0' or '1', but is ''.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Jonathan Druart 2021-04-13 10:45:58 +02:00
parent 5a3a9a17c6
commit aa71e7132c
2 changed files with 2 additions and 2 deletions

View file

@ -356,7 +356,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `
('NotHighlightedWords','and|or|not',NULL,'List of words to NOT highlight when OpacHitHighlight is enabled','free'),
('NoticeBcc','','','Email address to bcc outgoing notices sent by email','free'),
('NoticeCSS','',NULL,'Notices CSS url.','free'),
('NoticesLog','',NULL,'If enabled, log changes to notice templates','YesNo'),
('NoticesLog','0',NULL,'If enabled, log changes to notice templates','YesNo'),
('NotifyBorrowerDeparture','30',NULL,'Define number of days before expiry where circulation is warned about patron account expiry','Integer'),
('NovelistSelectEnabled','0',NULL,'Enable Novelist Select content. Requires Novelist Profile and Password','YesNo'),
('NovelistSelectPassword','',NULL,'Novelist select user Password','free'),

View file

@ -23784,7 +23784,7 @@ if ( CheckVersion($DBversion) ) {
$dbh->do(q{
INSERT IGNORE INTO systempreferences (variable, value, explanation, options, type)
VALUES ('NoticesLog','',NULL,'If enabled, log changes to notice templates','YesNo')
VALUES ('NoticesLog','0',NULL,'If enabled, log changes to notice templates','YesNo')
});
NewVersion( $DBversion, 14233, "Add id field to letter table" );