Bug 19241: Waiting items show as available in the cart
authorNick Clemens <nick@bywatersolutions.com>
Tue, 16 Apr 2019 17:21:01 +0000 (17:21 +0000)
committerNick Clemens <nick@bywatersolutions.com>
Thu, 25 Apr 2019 10:21:19 +0000 (10:21 +0000)
commite2fa6d97ef45efb902086aa3a3d232137c054afa
tree1e8037b0efd2578fcce564f6c0cec30fa31b7bc8
parent7be176cf1da5adb5f264bb9668667dfeb1d9a2ae
Bug 19241: Waiting items show as available in the cart

The cart uses the same item-status.inc that the details page uses, however, we don't
set the waiting or reserved flags. This patch adds those flags to the script

To test:
1 - Find an item on the opac
2 - Place a hold on the item
3 - Check in the item to confirm the hold
4 - Note the details page on OPAC shows 'On hold'
5 - Add the item to a basket
6 - Note the basket shows 'Available'
7 - Apply patch
8 - Check the cart, should show as 'On hold'

Signed-off-by: Hayley Mapley <hayleymapley@catalyst.net.nz>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
opac/opac-basket.pl