From d070cefeca1837520cd3b330e90b79f942296ac9 Mon Sep 17 00:00:00 2001 From: Alex Arnaud Date: Tue, 18 Sep 2018 13:05:26 +0000 Subject: [PATCH] Bug 19945: Use CanItemBeReserved in ILSDI HoldItem instead of CanBookBeReserved. --- C4/ILSDI/Services.pm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/C4/ILSDI/Services.pm b/C4/ILSDI/Services.pm index 034f55a..302862a 100644 --- a/C4/ILSDI/Services.pm +++ b/C4/ILSDI/Services.pm @@ -744,9 +744,8 @@ sub HoldItem { return { code => 'RecordNotFound' } if $$item{biblionumber} ne $biblio->biblionumber; # Check for item disponibility - # CanItemBeReserved codes are passed back too. - my $canbookbereserved = C4::Reserves::CanBookBeReserved( $borrowernumber, $biblionumber )->{status}; - return { code => $canbookbereserved } unless $canbookbereserved eq 'OK'; + my $canitembereserved = C4::Reserves::CanItemBeReserved( $borrowernumber, $itemnumber )->{status}; + return { code => $canitembereserved } unless $canitembereserved eq 'OK'; # Pickup branch management my $branch; -- 2.7.4