[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
Mon Dec 12 16:21:37 CET 2016


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16387

--- Comment #3 from Lari Taskula <lari.taskula at jns.fi> ---
Created attachment 58127
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=58127&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

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list