From aba426879981e4e7c79dece1d4d9309f1a0618be Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Fri, 26 Jan 2024 18:47:50 +0000 Subject: [PATCH] Bug 23208: perltidy Signed-off-by: Andrew Fuerste Henry Signed-off-by: Emily Lamancusa --- installer/data/mysql/atomicupdate/bug_23208.pl | 13 ++++++++----- installer/data/mysql/mandatory/sysprefs.sql | 2 +- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/installer/data/mysql/atomicupdate/bug_23208.pl b/installer/data/mysql/atomicupdate/bug_23208.pl index 9d9b1bd9c4..423a9d43d7 100755 --- a/installer/data/mysql/atomicupdate/bug_23208.pl +++ b/installer/data/mysql/atomicupdate/bug_23208.pl @@ -1,15 +1,18 @@ use Modern::Perl; return { - bug_number => "23208", + bug_number => "23208", description => "Add system preference HoldRatioDefault", - up => sub { + 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{ + $dbh->do( + q{ INSERT IGNORE INTO systempreferences (`variable`,`value`,`options`,`explanation`,`type`) VALUES ('HoldRatioDefault','3','','Default value for the Hold ratio report','Integer') - }); + } + ); }, }; diff --git a/installer/data/mysql/mandatory/sysprefs.sql b/installer/data/mysql/mandatory/sysprefs.sql index ec4abc7207..e4be2aad5c 100644 --- a/installer/data/mysql/mandatory/sysprefs.sql +++ b/installer/data/mysql/mandatory/sysprefs.sql @@ -288,7 +288,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` ('HidePatronName','0','','If this is switched on, patron\'s cardnumber will be shown instead of their name on the holds and catalog screens','YesNo'), ('HidePersonalPatronDetailOnCirculation', 0, '', 'Hide patrons phone number, email address, street address and city in the circulation page','YesNo'), ('HoldFeeMode','not_always','any_time_is_placed|not_always|any_time_is_collected','Set the hold fee mode','Choice'), -('HoldRatioDefault','3','','Default value for the hold ratio reprt','Integer'), +('HoldRatioDefault','3','','Default value for the hold ratio report','Integer'), ('HoldsAutoFill','0',NULL,'If on, librarian will not be asked if hold should be filled, it will be filled automatically','YesNo'), ('HoldsAutoFillPrintSlip','0',NULL,'If on, hold slip print dialog will be displayed automatically','YesNo'), ('HoldsLog','0',NULL,'If ON, log create/cancel/suspend/resume actions on holds.','YesNo'), -- 2.34.1