]> git.koha-community.org Git - koha.git/commit
Bug 24683: Optimize loop in ItemsAnyAvailableAndNotRestricted
authorAndrew Nugged <nugged@gmail.com>
Fri, 17 Jul 2020 11:59:19 +0000 (14:59 +0300)
committerLucas Gass <lucas@bywatersolutions.com>
Fri, 4 Sep 2020 17:48:41 +0000 (17:48 +0000)
commit13c5c4d85e8aaf57e511f037cb4e5de32066eebf
tree19f8187b617d1d841da6165fd1137c39a1405550
parenta831c288da603f022a9894d560ed542e69feb5e3
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@theke.io>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 720b69780c1f62c61f4b36df02d46d8c85c0d30a)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
C4/Reserves.pm