Bug 29196: (Bug 27068 follow-up) - Remove unnecessary check
authorKyle Hall <kyle@bywatersolutions.com>
Wed, 13 Oct 2021 16:20:33 +0000 (12:20 -0400)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 3 Oct 2022 16:39:30 +0000 (13:39 -0300)
commit7dfa7bcc21dbf3b79e33a957e9afd46dab214494
tree07fb7ebf75d85476c04d0608ac04a50ce4fc1ef9
parent01f1eb311ebaf379bbaaa14ee4b09e4948e03c1b
Bug 29196: (Bug 27068 follow-up) - Remove unnecessary check

The introduction of _checkHoldPolicy has made this check superfluous.
Test plan stolen/updated from 27068

To test:
 1) In library groups add a root group and check it as hold group.
 2) Add two libraries to the group
 3) In circulation and fines rules, in 'Default checkout, hold and return
 policy', in Hold pickup library match change the value to 'From patron's hold group'
 4) Place a hold from a patron whose home library is from the group
 4.5) perl misc/cronjobs/holds/build_holdsqueue.pl
 5) Go to /cgi-bin/koha/circ/view_holdsqueue.pl
 6) Select the holding branch of the item with a hold
 7) observe no results
 8) Apply Patch
 9) Repeat 5-6
10) The item should come up on the holds queue results
11) Place a hold on an item where 1 record has 2 copies, 1 in the hold group, 1 not.
12) Run the HoldQueue for the library not in the group and make sure the hold isn't showing.
13) Turn on transportation cost matrix and set costs for the libraries within the group.
14) Place a hold for a patron where multiple copies are on the bib.
15) Check both branch's hold queue for the item, it should only show on the lower cost branch's list if both copies are available.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
C4/HoldsQueue.pm