Bugzilla – Attachment 118734 Details for
Bug 15986
Add a script for sending hold waiting reminder notices
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15986: Update for bug 24159
Bug-15986-Update-for-bug-24159.patch (text/plain), 1.26 KB, created by
Martin Renvoize
on 2021-03-24 11:46:20 UTC
(
hide
)
Description:
Bug 15986: Update for bug 24159
Filename:
MIME Type:
Creator:
Martin Renvoize
Created:
2021-03-24 11:46:20 UTC
Size:
1.26 KB
patch
obsolete
>From 861d1b7f8215c36cef7fd5dd26b2964330e7197b Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Thu, 16 Jul 2020 16:34:26 +0000 >Subject: [PATCH] Bug 15986: Update for bug 24159 > >The job is concerned with holds waiting and takes days, I think using days_mode 'Calendar' >makes sense as we are not calculating due dates > >Signed-off-by: Kim Gnerre <kgnerre@hotchkiss.org> >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > misc/cronjobs/holds_reminder.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/misc/cronjobs/holds_reminder.pl b/misc/cronjobs/holds_reminder.pl >index c409e405b3..d892ccfa49 100755 >--- a/misc/cronjobs/holds_reminder.pl >+++ b/misc/cronjobs/holds_reminder.pl >@@ -233,7 +233,7 @@ foreach my $branchcode (@branchcodes) { #BEGIN BRANCH LOOP > # If respecting calendar get the correct waiting since date > my $waiting_date; > if( $use_calendar ){ >- my $calendar = Koha::Calendar->new( branchcode => $branchcode ); >+ my $calendar = Koha::Calendar->new( branchcode => $branchcode, days_mode => 'Calendar' ); > my $duration = DateTime::Duration->new( days => -$days ); > $waiting_date = $calendar->addDays($date_to_run,$duration); #Add negative of days > } else { >-- >2.20.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 15986
:
53323
|
53354
|
53594
|
55723
|
91767
|
91768
|
99919
|
102723
|
102926
|
106962
|
106963
|
106964
|
112999
|
113000
|
113001
|
118733
| 118734 |
118735
|
118736
|
118737
|
119277
|
119308
|
119327
|
119328
|
119329
|
119383
|
119384
|
119386
|
119624
|
119725
|
119748
|
120224