Bug 10226 - suspended holds still show not available
authorKyle M Hall <kyle@bywatersolutions.com>
Wed, 27 Aug 2014 12:29:05 +0000 (08:29 -0400)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Sun, 14 Sep 2014 05:02:51 +0000 (02:02 -0300)
commit3e78a908f0fb7c904ab478d1c4f8ede4bab3c9ba
treea82296fbb56574a58eacb75f5d69c07c5f6a622f
parente261343aac9fab0b737962fe740c9f30b0d8d41b
Bug 10226 - suspended holds still show not available

If you suspend a hold, the item does not show Available.  It still shows
the person next in line, who isn't eligible for the hold yet because of
the suspension.  This is not the case for a delayed hold, where you
originally place the hold and tell it not to start until a future date.
If you do that, it shows as Available.  This is confusing and
inconsistent.

Test Plan:
1) Create an item level suspended hold for a record with no other holds
2) Note in the record details that the hold shows an item level hold
3) Apply this patch
4) Refresh the record details page, note the item is "Available"
5) Optional: prove t/db_dependent/Holds.t t/db_dependent/Reserves.t

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Works as described, passes all tests and QA script.

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
C4/Reserves.pm