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>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>

Conflicts:

	reserve/renewscript.pl
This commit is contained in:
Colin Campbell 2012-08-23 14:04:31 +01:00 committed by Chris Cormack
parent 52c2e370e2
commit a5bdce50fa
1 changed files with 4 additions and 2 deletions

View File

@ -67,8 +67,10 @@ if ($input->param('return_all')) {
my $branch=$input->param('branch');
my $datedue;
if ($input->param('newduedate')){
$datedue = dt_from_string($input->param('newduedate'));
if ( $input->param('newduedate') ) {
$datedue = dt_from_string( $input->param('newduedate') );
$datedue->set_hour(23);
$datedue->set_minute(59);
}
# warn "barcodes : @barcodes";