[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
Sun Jul 19 23:29:37 CEST 2020


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

--- Comment #16 from Andrew Nugged <nugged at gmail.com> ---
Created attachment 107073
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=107073&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.

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


More information about the Koha-bugs mailing list