]> git.koha-community.org Git - koha.git/commit
Bug 17729: Replace IsItemOnHoldAndFound
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 5 Sep 2024 10:47:53 +0000 (12:47 +0200)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Mon, 16 Sep 2024 08:41:02 +0000 (10:41 +0200)
commit860d3967aeb96b18b2786357471524363f8db9a6
tree5fa6414f5c75429e2df1097c6181c04c31e4543d
parent039b004b8e7e7b9b89ef7ae95e115f1f5841d5b9
Bug 17729: Replace IsItemOnHoldAndFound

This subroutine can easily be replaced with
$item->holds->filter_by_found->count \o/

Test plan:
Confirm that the old sub and $item->holds->filter_by_found->count
produce the same query

Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
C4/Circulation.pm
C4/Reserves.pm