Koha/installer/data/mysql/db_revs/220600007.pl
Tomas Cohen Arazi b6dcd3cbd3
Bug 29129: DBRev 22.06.00.007
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2022-06-25 11:16:23 -03:00

22 lines
673 B
Perl
Executable file

use Modern::Perl;
return {
bug_number => "29129",
description => "Update the DisplayClearnScreenButton system pref to allow for a choice between ISSUESLIP and ISSUEQSLIP",
up => sub {
my ($args) = @_;
my ($dbh, $out) = @$args{qw(dbh out)};
$dbh->do(q{
UPDATE systempreferences
SET
options = 'no|issueslip|issueqslip',
type = 'Choice',
value = CASE value
WHEN 1 THEN 'issueslip'
ELSE 'no'
END
WHERE variable = 'DisplayClearScreenButton';
});
},
};