[Koha-patches] [PATCH] Bug 8675 Add hours and mins to renewal due date
Colin Campbell
colin.campbell at ptfs-europe.com
Thu Aug 23 15:41:00 CEST 2012
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
---
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.12.70.g851f7e6
More information about the Koha-patches
mailing list