Bugzilla – Attachment 43439 Details for
Bug 14292
Add --category and --skip-category options to longoverdue.pl to include or exclude borrower categories.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
bug 14292: Make --category and --skip-category case insensitive
bug-14292-Make---category-and---skip-category-case.patch (text/plain), 959 bytes, created by
Barton Chittenden
on 2015-10-15 14:12:22 UTC
(
hide
)
Description:
bug 14292: Make --category and --skip-category case insensitive
Filename:
MIME Type:
Creator:
Barton Chittenden
Created:
2015-10-15 14:12:22 UTC
Size:
959 bytes
patch
obsolete
>From 9c9fe22fab1fdaa9b37a0fffe21a6c5d28f0aba1 Mon Sep 17 00:00:00 2001 >From: Barton Chittenden <barton@bywatersolutions.com> >Date: Thu, 15 Oct 2015 07:09:16 -0700 >Subject: [PATCH] bug 14292: Make --category and --skip-category case > insensitive > >--- > misc/cronjobs/longoverdue.pl | 2 ++ > 1 file changed, 2 insertions(+) > >diff --git a/misc/cronjobs/longoverdue.pl b/misc/cronjobs/longoverdue.pl >index 6c8b41e..1b374e9 100755 >--- a/misc/cronjobs/longoverdue.pl >+++ b/misc/cronjobs/longoverdue.pl >@@ -253,6 +253,8 @@ sub longoverdue_sth { > > my $dbh = C4::Context->dbh; > my @available_categories = map { uc $_->[0] } @{ $dbh->selectall_arrayref(q|SELECT categorycode FROM categories|) }; >+my $borrower_category = [ map { uc $_} @$borrower_category ]; >+my $skip_borrower_category = [ map { uc $_} @$skip_borrower_category ]; > my %category_to_process; > for my $cat ( @$borrower_category ) { > unless ( grep { /^$cat$/ } @available_categories ) { >-- >1.7.10.4
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 14292
:
42125
|
42614
|
42892
|
43304
|
43305
|
43336
|
43337
|
43439
|
43489
|
43490
|
43491
|
43492
|
43493
|
43494
|
45293
|
45296