Bug 22899: Add pending_hold method to Koha::Item
authorNick Clemens <nick@bywatersolutions.com>
Mon, 13 May 2019 20:09:05 +0000 (20:09 +0000)
committerNick Clemens <nick@bywatersolutions.com>
Tue, 14 May 2019 18:08:34 +0000 (18:08 +0000)
commitf21ebad7d298f25e44771e5833d1d1d4d6d8f777
tree41ea16e2dfb2070d2efa461f41cdc19bbc0aa8a1
parentaf1067f3d466cf3bd32c4747c4a00dd7542c1fe0
Bug 22899: Add pending_hold method to Koha::Item

To test:
 1 - Enable course reserves
 2 - Create a course
 3 - Add an item to the course
 4 - Attempt to view the course on the OPAC
 5 - Internal Server Error
 6 - Apply patch
 7 - Add an item to the holds queue by placing a hold and  running holds queue builder or:
     INSERT INTO tmp_holdsqueue (itemnumber) VALUES (###);
 8 - View the course page, note item appears 'Pending hold'
 9 - Remove the holdsqueue line
10 - View the course page, note item appears 'Available'
11 - prove -v t/db_dependent/Koha/Item.t

Signed-off-by: Hayley Mapley <hayleymapley@catalyst.net.nz>
I see Jonathan's comments about small improvements, but will sign off as
everything works as expected here.
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Koha/Item.pm
t/db_dependent/Koha/Item.t