[Koha-bugs] [Bug 24683] Holds on biblios with different item types: rules for holds allowed are not applied correctly if any item type is available

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Jul 20 17:28:30 CEST 2020


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

--- Comment #23 from Agustín Moyano <agustinmoyano at theke.io> ---
Created attachment 107117
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=107117&action=edit
Bug 24683: Optimize loop in ItemsAnyAvailableAndNotRestricted

Add cut-off shortcut (return from inside the loop) when first
"Any Available And Not Restricted" item found, because one is
enough for "Any".

Testing: no change visible for code behavior/results,
it is just faster because won't loop over the whole set.

Signed-off-by: Agustin Moyano <agustinmoyano at theke.io>

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


More information about the Koha-bugs mailing list