Bug 30200: (follow-up) Update database update and pref description

* Rephrases the system preference description a bit
* Adds IGNORE to the database statement
* Update output message of database statement to include pref name

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Magnus Enger <magnus@libriotech.no>
Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Katrin Fischer 2022-08-08 21:18:19 +00:00 committed by Katrin Fischer
parent 543c5fab0a
commit f1ad32ebe2
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
1 changed files with 10 additions and 7 deletions

View File

@ -1,18 +1,21 @@
use Modern::Perl;
return {
bug_number => "30200",
description => "Add customizable tabs to interlibrary loan requests list",
up => sub {
bug_number => "30200",
description => "Add ILLRequestsTabs system preference",
up => sub {
my ($args) = @_;
my ($dbh, $out) = @$args{qw(dbh out)};
my ( $dbh, $out ) = @$args{qw(dbh out)};
# Do you stuffs here
$dbh->do(q{
INSERT INTO `systempreferences`
$dbh->do(
q{
INSERT IGNORE INTO `systempreferences`
(variable,value,options,explanation,type)
VALUES
('ILLRequestsTabs','','','Add customizable tabs to interlibrary loan requests list','Textarea');
});
}
);
},
};