[Koha-bugs] [Bug 16387] Incorrect loan period calculation when using decreaseLoanHighHolds feature
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Jan 19 21:17:03 CET 2017
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16387
Gracie <grace.mcky at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #58127|0 |1
is obsolete| |
--- Comment #5 from Gracie <grace.mcky at gmail.com> ---
Created attachment 59278
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=59278&action=edit
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 at gmail.com>
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
More information about the Koha-bugs
mailing list