[Koha-bugs] [Bug 29102] DecreaseLoanHighHolds will decrease loan period if borrower has an 'unfound' hold

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Jan 3 15:18:51 CET 2022


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

--- Comment #5 from Nick Clemens <nick at bywatersolutions.com> ---
(In reply to Christopher Brannon from comment #4)
> I'm using a sandbox, and I haven't applied the patch yet and I am not
> running into the problem in step 5.  It just checks out the item and removes
> the hold.

Ah, I described it in initial comment "and there are other holds"

When set to dynamic we check:
$threshold = $items_count + $decreaseLoanHighHoldsValue;
$holds->count() <= $threshold

items_count will be 0 (none holdable) but holds count is still 1, so not over
the threshold

Amended steps below:
step 4 - place title level holds for 2 patrons
step 5 - attempt to checkout to one of the patrons who have a hold

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


More information about the Koha-bugs mailing list