]> git.koha-community.org Git - koha.git/commit
Bug 24185: Make holds page faster - Improved "if"
authorAndrew Nugged <nugged@gmail.com>
Thu, 19 Dec 2019 16:16:33 +0000 (18:16 +0200)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Wed, 25 Mar 2020 09:39:59 +0000 (09:39 +0000)
commit7ecd21a1e463db9c504b0d8929b11f7cfdcdb031
tree615328d43c77930291364fe932473003774ac52d
parenta0b8805ce39fb5ea8ba147466f82f5af41815cd0
Bug 24185: Make holds page faster - Improved "if"

`$can_item_be_reserved eq 'OK'` moved in `&&` before `IsAvailableForItemLevelRequest`
to cut away with static known values before calling to more resource consuming subroutine.

Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
reserve/request.pl