]> git.koha-community.org Git - koha.git/commit
Bug 16387: Fix default shortened loan period time
authorLari Taskula <lari.taskula@jns.fi>
Mon, 12 Dec 2016 14:49:44 +0000 (16:49 +0200)
committerKyle M Hall <kyle@bywatersolutions.com>
Tue, 7 Feb 2017 17:54:21 +0000 (17:54 +0000)
commit21ac9fcdc2ca449a491cc79e68cc854ee248d911
treedcb798e47c1bf48e8518a8b0a34603e94c7be2e1
parent18529d7cc5a6334e45d977da9ddfe5429f402c2b
Bug 16387: Fix default shortened loan period time

When a loan period is shortened due to using decreaseLoanHighHolds* the time is
always set to the current time in X days, even if the original loan period is
given in days and not in hours.

It should default to 23:59 as is normal for loan periods given in days.

As original due date time defaults to 23:59 when given in days, this patch
modifies the hours and minutes of shortened due date to be equal to original due
date.

To test:
1. prove t/db_dependent/DecreaseLoanHighHolds.t

Signed-off-by: Grace McKenzie <grace.mcky@gmail.com>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
C4/Circulation.pm
t/db_dependent/DecreaseLoanHighHolds.t