From 33e008f4e3109ca69dff50f736c6527652f955b0 Mon Sep 17 00:00:00 2001 From: Matthias Le Gac Date: Thu, 22 Feb 2024 15:33:25 -0500 Subject: [PATCH] Bug 35169: add bug_35169.pl for DB Signed-off-by: Kyle M Hall --- .../data/mysql/atomicupdate/bug_35169.pl | 23 +++++++++++++++++++ .../admin/preferences/circulation.pref | 1 - 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100755 installer/data/mysql/atomicupdate/bug_35169.pl diff --git a/installer/data/mysql/atomicupdate/bug_35169.pl b/installer/data/mysql/atomicupdate/bug_35169.pl new file mode 100755 index 00000000000..6ca2a0f294a --- /dev/null +++ b/installer/data/mysql/atomicupdate/bug_35169.pl @@ -0,0 +1,23 @@ +use Modern::Perl; + +return { + bug_number => "35169", + description => "Add new system preferences for longoverdue.pl borrowers categories", + up => sub { + my ($args) = @_; + my ( $dbh, $out ) = @$args{qw(dbh out)}; + + # Do you stuffs here + $dbh->do( + q{ + INSERT INTO systempreferences (variable, value, options, explanation, type) VALUES + ('DefaultLongOverdueBorrowerCategories', '', NULL, NULL, NULL), + ('DefaultLongOverdueSkipBorrowerCategories', '', NULL, NULL, NULL); + } + ); + + # sysprefs + say $out "Added new system preference 'DefaultLongOverdueBorrowerCategories'"; + say $out "Added new system preference 'DefaultLongOverdueSkipBorrowerCategories'"; + }, +}; \ No newline at end of file diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref index 1040c700485..0f4ac446a70 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref @@ -459,7 +459,6 @@ Circulation: -
WARNING — This preference will be active only if DefaultLongOverdueSkipBorrowerCategories is empty. - "
NOTE: This system preference requires the misc/cronjobs/longoverdue.pl cronjob. Ask your system administrator to schedule it." - - - pref: DefaultLongOverdueSkipBorrowerCategories choices: patron-categories -- 2.30.2