Bugzilla – Attachment 113000 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.20 KB, created by
Andrew Fuerste-Henry
on 2020-11-04 14:49:11 UTC
(
hide
)
Description:
Bug 15986: Update for bug 24159
Filename:
MIME Type:
Creator:
Andrew Fuerste-Henry
Created:
2020-11-04 14:49:11 UTC
Size:
1.20 KB
patch
obsolete
>From 0ab2607f0f13bb2de5793a0cd8a2e8e33d57eed1 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> >--- > 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.11.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 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