Bug 27718: (bug 24488 follow-up) Hide items not holdable
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 17 Feb 2021 15:11:52 +0000 (16:11 +0100)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 1 Mar 2021 10:28:02 +0000 (11:28 +0100)
commitffe5eefcbc873ad60780a5339c24d0925f65e6e9
treec87a0f12f41ad8b32d123f367321d917881dcea4
parent42e9cceebc66d7fb02d01cbfd96cc3520e1f2875
Bug 27718: (bug 24488 follow-up) Hide items not holdable

After bug 24488 was merged Holds to Pull list (/cgi-bin/koha/circ/pendingreserves.pl)
doesn't respect anymore the 'holdallowed' circulation rules (we bisected it to this change).
If we look at the patch "Bug 24488: Show correct first patron details on Holds to pull"
(2285c2d6575) then we can notice that previously the items that were shown in the list
must had holdallowed != 0:

Now it seems like similar circ rule check is missing in the newly rewritten Holds To Pull implementation.
(description copied from comment 0)

Test plan:
Have several pending holds
Mark some item type as not holdable in the circulation rules
Confirm that the non holdable items are no longer listed on the "Holds
to pull" view

Signed-off-by: Andrew Nugged <nugged@gmail.com>
Signed-off-by: Joonas Kylmälä <joonas.kylmala@helsinki.fi>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Koha/Holds.pm