Bug 15534 [QA Followup] - Use IsItemOnHoldAndFound instead of GetReserveStatus
authorKyle M Hall <kyle@bywatersolutions.com>
Wed, 27 Apr 2016 13:31:13 +0000 (13:31 +0000)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 29 Apr 2016 10:35:06 +0000 (10:35 +0000)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
C4/Reserves.pm

index 4823f53..58cfdbf 100644 (file)
@@ -1516,7 +1516,7 @@ sub IsAvailableForItemLevelRequest {
               || $i->{notforloan} > 0
               || $i->withdrawn
               || $i->onloan
-              || GetReserveStatus( $i->id ) eq "Waiting"
+              || IsItemOnHoldAndFound( $i->id )
               || ( $i->damaged
                 && !C4::Context->preference('AllowHoldsOnDamagedItems') )
               || Koha::ItemTypes->find( $i->effective_itemtype() )->notforloan;