Bugzilla – Attachment 57295 Details for
Bug 17569
Move GetUpcomingMembershipExpires to Koha::Patrons
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 17569: Do not limit by branch if option is not passed
Bug-17569-Do-not-limit-by-branch-if-option-is-not-.patch (text/plain), 1.15 KB, created by
Jonathan Druart
on 2016-11-08 08:08:04 UTC
(
hide
)
Description:
Bug 17569: Do not limit by branch if option is not passed
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2016-11-08 08:08:04 UTC
Size:
1.15 KB
patch
obsolete
>From 9edc135269c6d549f9a4c893fce9a06fd953890f Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 8 Nov 2016 08:07:02 +0000 >Subject: [PATCH] Bug 17569: Do not limit by branch if option is not passed > >--- > misc/cronjobs/membership_expiry.pl | 8 +++++++- > 1 file changed, 7 insertions(+), 1 deletion(-) > >diff --git a/misc/cronjobs/membership_expiry.pl b/misc/cronjobs/membership_expiry.pl >index 3b4b885..260a9f8 100755 >--- a/misc/cronjobs/membership_expiry.pl >+++ b/misc/cronjobs/membership_expiry.pl >@@ -167,7 +167,13 @@ if( !$expdays ) { > > my $admin_adress = C4::Context->preference('KohaAdminEmailAddress'); > warn 'getting upcoming membership expires' if $verbose; >-my $upcoming_mem_expires = Koha::Patrons->search_upcoming_membership_expires({ 'me.branchcode' => $branch, before => $before, after => $after }); >+my $upcoming_mem_expires = Koha::Patrons->search_upcoming_membership_expires( >+ { >+ ( $branch ? ( 'me.branchcode' => $branch ) : () ), >+ before => $before, >+ after => $after, >+ } >+); > warn 'found ' . $upcoming_mem_expires->count . ' soon expiring members' > if $verbose; > >-- >2.1.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 17569
:
57265
|
57266
|
57267
|
57294
|
57295
|
57315
|
57316
|
57317
|
57318
|
57319
|
57894
|
57895
|
57896
|
57897
|
57898
|
57908
|
57909
|
57910
|
57911
|
57912
|
57913
|
58478
|
58479
|
58480
|
58481
|
58482
|
58483