Browse Source
A Yes/No system preference must use 1 for Yes and 0 for No. So "Send" for 1/Yes and "Don't send" for 0/No. We add too much problems with double-negation boolean system preferences (such as dontmerge). Previous patch changed default value to 1 in atomicupdate, do the same in installer/data/mysql/mandatory/sysprefs.sql Also to be consistant, sets options = NULL instead of '' in atomicupdate Also removed useless added empty line in /misc/cronjobs/overdue_notices.pl Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>22.05.x
Fridolin Somers
2 years ago
4 changed files with 9 additions and 11 deletions
@ -1,15 +1,15 @@ |
|||||
use Modern::Perl; |
use Modern::Perl; |
||||
|
|
||||
{ |
return { |
||||
bug_number => "20076", |
bug_number => "20076", |
||||
description => "Add system preference EmailOverduesNoEmail", |
description => "Add system preference EmailOverduesNoEmail", |
||||
up => sub { |
up => sub { |
||||
my ($args) = @_; |
my ($args) = @_; |
||||
my ($dbh, $out) = @$args{qw(dbh out)}; |
my ($dbh, $out) = @$args{qw(dbh out)}; |
||||
|
|
||||
$dbh->do(q{ |
$dbh->do(q{ |
||||
INSERT IGNORE INTO systempreferences (`variable`,`value`,`options`,`explanation`,`type`) |
INSERT IGNORE INTO systempreferences (`variable`,`value`,`options`,`explanation`,`type`) |
||||
VALUES ('EmailOverduesNoEmail','1','','Send send overdues of patrons without email address to staff', 'YesNo') |
VALUES ('EmailOverduesNoEmail','1',NULL,'Send send overdues of patrons without email address to staff', 'YesNo') |
||||
}); |
}); |
||||
}, |
}, |
||||
} |
} |
Loading…
Reference in new issue