From e36474d8dcb5d64aed1915708e4e5d45864adb69 Mon Sep 17 00:00:00 2001 From: David Gustafsson Date: Tue, 2 Oct 2018 13:37:26 +0200 Subject: [PATCH] Bug 21471: Misspelled variable in _get_outstanding_holds Misspelled variable causes _get_outstanding_holds to crash if patron is queued on biblio level --- C4/SIP/ILS/Patron.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/SIP/ILS/Patron.pm b/C4/SIP/ILS/Patron.pm index 82ccc756f2..9b8cb53150 100644 --- a/C4/SIP/ILS/Patron.pm +++ b/C4/SIP/ILS/Patron.pm @@ -490,7 +490,7 @@ sub _get_outstanding_holds { # We need to return a barcode for the biblio so the client # can request the biblio info my $items = $hold->biblio->items; - $item = $items->count ? $item->next : undef; + $item = $items->count ? $items->next : undef; } my $unblessed_hold = $hold->unblessed; -- 2.11.0