]> 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)
committerKatrin Fischer <katrin.fischer.83@web.de>
Tue, 7 Feb 2017 21:21:15 +0000 (22:21 +0100)
commit090f2885b7a910ee84212fa5bb0141611121eb77
tree09b56c69c5530cf09f2040d99958db7721f01f63
parentfdf1f974770247dc4b8decfb3318e31b940be48d
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>
(cherry picked from commit 21ac9fcdc2ca449a491cc79e68cc854ee248d911)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
C4/Circulation.pm
t/db_dependent/DecreaseLoanHighHolds.t