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 62a075987a
    Bug 21184: Replace C4::Items::GetBarcodeFromItemnumber calls

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
David Gustafsson 2018-10-02 13:37:26 +02:00 committed by Nick Clemens
parent 16fe5d7f30
commit b4d8d13f14

View file

@ -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;