Bugzilla – Attachment 57319 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]
[SIGNED-OFF] Bug 17569: Do not limit by branch if option is not passed
SIGNED-OFF-Bug-17569-Do-not-limit-by-branch-if-opt.patch (text/plain), 1.22 KB, created by
Josef Moravec
on 2016-11-08 12:38:50 UTC
(
hide
)
Description:
[SIGNED-OFF] Bug 17569: Do not limit by branch if option is not passed
Filename:
MIME Type:
Creator:
Josef Moravec
Created:
2016-11-08 12:38:50 UTC
Size:
1.22 KB
patch
obsolete
>From 62cc8ea4b1ee5263c73d0d06d81208f054b709cd 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] [SIGNED-OFF] Bug 17569: Do not limit by branch if option is > not passed > >Signed-off-by: Josef Moravec <josef.moravec@gmail.com> >--- > 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