From 8764b551d15d290cc67354da7eab1cdff8e12056 Mon Sep 17 00:00:00 2001 From: David Gustafsson Date: Tue, 2 Oct 2018 13:37:26 +0200 Subject: [PATCH] Bug 21471: (bug 21184 follow-up) Misspelled variable in _get_outstanding_holds Misspelled variable causes _get_outstanding_holds to crash if patron is queued on biblio level Caused by commit 62a075987af70ec5ed3665fe662adb31a17fdde4 Bug 21184: Replace C4::Items::GetBarcodeFromItemnumber calls Signed-off-by: Chris Cormack Signed-off-by: Jonathan Druart --- 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