]> 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)
committerJulian Maurice <julian.maurice@biblibre.com>
Thu, 9 Feb 2017 09:40:43 +0000 (10:40 +0100)
commitb42c7b8d44028178ecfc9af2106c5fc3e836bd1d
treecde7698c218d83314496d6a43cb32a11701d7534
parentab135c07aab4229fbf02916683cfa10c06044e2d
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>
(cherry picked from commit 090f2885b7a910ee84212fa5bb0141611121eb77)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
C4/Circulation.pm