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:
parent
52c2e370e2
commit
a5bdce50fa
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Reference in New Issue