Bugzilla – Attachment 162688 Details for
Bug 35169
Make long overdue patron category options configurable in interface
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 35169: Resolve the override situations
Bug-35169-Resolve-the-override-situations.patch (text/plain), 2.34 KB, created by
Matthias Le Gac
on 2024-03-01 19:20:42 UTC
(
hide
)
Description:
Bug 35169: Resolve the override situations
Filename:
MIME Type:
Creator:
Matthias Le Gac
Created:
2024-03-01 19:20:42 UTC
Size:
2.34 KB
patch
obsolete
>From 2b7dceaa3d2a150a4c47270c99ba602833d91eb8 Mon Sep 17 00:00:00 2001 >From: Matthias Le Gac <matthias.le-gac@inlibro.com> >Date: Fri, 1 Mar 2024 14:17:20 -0500 >Subject: [PATCH] Bug 35169: Resolve the override situations > >--- > misc/cronjobs/longoverdue.pl | 18 ++++++++++++------ > 1 file changed, 12 insertions(+), 6 deletions(-) > >diff --git a/misc/cronjobs/longoverdue.pl b/misc/cronjobs/longoverdue.pl >index 06cd6b2830..1eda9ccdc7 100755 >--- a/misc/cronjobs/longoverdue.pl >+++ b/misc/cronjobs/longoverdue.pl >@@ -173,12 +173,14 @@ If not provided, the value of the system preference 'MarkLostItemsAsReturned' wi > Act on the listed borrower category code (borrowers.categorycode). > Exclude all others. This may be specified multiple times to include multiple categories. > May not be used with B<--skip-category> >+If not provided, the value of the system preference 'DefaultLongOverdueBorrowerCategories' will be used. > > =item B<--skip-category> > > Act on all available borrower category codes, except those listed. > This may be specified multiple times, to exclude multiple categories. > May not be used with B<--category> >+If not provided, the value of the system preference 'DefaultLongOverdueSkipBorrowerCategories' will be used. > > =item B<--list-categories> > >@@ -276,14 +278,18 @@ if ( ! defined($charge) ) { > } > } > >-if ( C4::Context->preference('DefaultLongOverdueBorrowerCategories') ) { >- my $categories = C4::Context->preference('DefaultLongOverdueBorrowerCategories'); >- $borrower_category = [ split( ',', $categories ) ]; >+if ( scalar @$borrower_category == 0 ) { >+ if ( C4::Context->preference('DefaultLongOverdueBorrowerCategories') ) { >+ my $categories = C4::Context->preference('DefaultLongOverdueBorrowerCategories'); >+ $borrower_category = [ split( ',', $categories ) ]; >+ } > } > >-if ( C4::Context->preference('DefaultLongOverdueSkipBorrowerCategories') ) { >- my $categories = C4::Context->preference('DefaultLongOverdueSkipBorrowerCategories'); >- $skip_borrower_category = [ split( ',', $categories ) ]; >+if ( scalar @$skip_borrower_category == 0 ) { >+ if ( C4::Context->preference('DefaultLongOverdueSkipBorrowerCategories') ) { >+ my $categories = C4::Context->preference('DefaultLongOverdueSkipBorrowerCategories'); >+ $skip_borrower_category = [ split( ',', $categories ) ]; >+ } > } > > unless ($confirm) { >-- >2.34.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 35169
:
162340
|
162345
|
162346
|
162611
|
162667
|
162688
|
163008
|
166121
|
166122
|
166123
|
166124
|
166125
|
166126
|
166127
|
166256