From 8ba9b50b22d0c63ffafcb49abb51e965ada3bc1a Mon Sep 17 00:00:00 2001 From: djfiander Date: Wed, 26 Apr 2006 14:19:52 +0000 Subject: [PATCH] Replace call to nonexistent method 'hold_items_count' with correct code. --- ILS/Patron.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ILS/Patron.pm b/ILS/Patron.pm index f4bd188..6affa67 100644 --- a/ILS/Patron.pm +++ b/ILS/Patron.pm @@ -265,7 +265,7 @@ sub hold_items { my ($self, $start, $end) = @_; $start = 1 if !defined($start); - $end = $self->hold_items_count if !defined($end); + $end = scalar @{$self->{hold_items}} if !defined($end); return map $_->{item_id}, @{$self->{hold_items}}[$start-1 .. $end-1]; } -- 2.11.0