Bugzilla – Attachment 11812 Details for
Bug 8675
Renewing item to specified date creates a due date with HH:MM set to 00:00
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 8675 Add hours and mins to renewal due date
Bug-8675-Add-hours-and-mins-to-renewal-due-date.patch (text/plain), 936 bytes, created by
Chris Cormack
on 2012-08-23 22:19:17 UTC
(
hide
)
Description:
Bug 8675 Add hours and mins to renewal due date
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2012-08-23 22:19:17 UTC
Size:
936 bytes
patch
obsolete
>From 050b717e36d5f2a69ca19fc8e65ba6331fb25f04 Mon Sep 17 00:00:00 2001 >From: Colin Campbell <colin.campbell@ptfs-europe.com> >Date: Thu, 23 Aug 2012 14:04:31 +0100 >Subject: [PATCH] Bug 8675 Add hours and mins to renewal due date > >If user supplies renewal with a new due date it should add >a time using the same logic as dateduespec in circulation.pl >rather than defaulting to 00:00 > >Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz> >--- > reserve/renewscript.pl | 2 ++ > 1 file changed, 2 insertions(+) > >diff --git a/reserve/renewscript.pl b/reserve/renewscript.pl >index d13ced3..dbdced9 100755 >--- a/reserve/renewscript.pl >+++ b/reserve/renewscript.pl >@@ -68,6 +68,8 @@ my $branch = $input->param('branch'); > my $datedue; > if ( $input->param('newduedate') ) { > $datedue = dt_from_string( $input->param('newduedate') ); >+ $datedue->set_hour(23); >+ $datedue->set_minute(59); > } > > # warn "barcodes : @barcodes"; >-- >1.7.9.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 8675
:
11785
| 11812