Bugzilla – Attachment 43494 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: (follow-up) Make --category and --skip-category case insensitive
Bug-14292-follow-up-Make---category-and---skip-cat.patch (text/plain), 1.32 KB, created by
Jonathan Druart
on 2015-10-16 10:44:07 UTC
(
hide
)
Description:
Bug 14292: (follow-up) Make --category and --skip-category case insensitive
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2015-10-16 10:44:07 UTC
Size:
1.32 KB
patch
obsolete
>From 67cf8fc9b60a9487cb42d84b8a8ff482dde0d257 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 16 Oct 2015 11:42:48 +0100 >Subject: [PATCH] Bug 14292: (follow-up) Make --category and --skip-category > case insensitive > >"my" variable $borrower_category masks earlier declaration in same scope >"my" variable $skip_borrower_category masks earlier declaration in same scope > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > misc/cronjobs/longoverdue.pl | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/misc/cronjobs/longoverdue.pl b/misc/cronjobs/longoverdue.pl >index 1b374e9..b73d31f 100755 >--- a/misc/cronjobs/longoverdue.pl >+++ b/misc/cronjobs/longoverdue.pl >@@ -253,8 +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 ]; >+$borrower_category = [ map { uc $_ } @$borrower_category ]; >+$skip_borrower_category = [ map { uc $_} @$skip_borrower_category ]; > my %category_to_process; > for my $cat ( @$borrower_category ) { > unless ( grep { /^$cat$/ } @available_categories ) { >-- >2.1.0
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