Bugzilla – Attachment 12578 Details for
Bug 8841
Duedates set by Returnbeforeexpiry lack HH:MM
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGNED-OFF] Bug 8841 Duedate should be set to end of expiry day
Bug-8841-Duedate-should-be-set-to-end-of-expiry-da.patch (text/plain), 1.13 KB, created by
Kyle M Hall (khall)
on 2012-09-28 13:04:56 UTC
(
hide
)
Description:
[SIGNED-OFF] Bug 8841 Duedate should be set to end of expiry day
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2012-09-28 13:04:56 UTC
Size:
1.13 KB
patch
obsolete
>From 6e0ac2debb4f3a686f8af9408f64dc340c724e0d Mon Sep 17 00:00:00 2001 >From: Colin Campbell <colin.campbell@ptfs-europe.com> >Date: Fri, 28 Sep 2012 11:48:18 +0100 >Subject: [PATCH] Bug 8841 Duedate should be set to end of expiry day >Content-Type: text/plain; charset="utf-8" > >When reducing duedate to patron's expiry date >it should be set to end of that day not 00:00 >take account of the fact that the borrower >expiry date will have no hours/minutes > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > C4/Circulation.pm | 1 + > 1 files changed, 1 insertions(+), 0 deletions(-) > >diff --git a/C4/Circulation.pm b/C4/Circulation.pm >index 71e13bb..3278039 100644 >--- a/C4/Circulation.pm >+++ b/C4/Circulation.pm >@@ -3062,6 +3062,7 @@ sub CalcDateDue { > # if ReturnBeforeExpiry ON the datedue can't be after borrower expirydate > if ( C4::Context->preference('ReturnBeforeExpiry') ) { > my $expiry_dt = dt_from_string( $borrower->{dateexpiry}, 'iso' ); >+ $expiry_dt->set( hour => 23, minute => 59); > if ( DateTime->compare( $datedue, $expiry_dt ) == 1 ) { > $datedue = $expiry_dt->clone; > } >-- >1.7.2.5
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 8841
:
12568
| 12578