From: djfiander Date: Wed, 26 Apr 2006 14:19:52 +0000 (+0000) Subject: Replace call to nonexistent method 'hold_items_count' with X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=8ba9b50b22d0c63ffafcb49abb51e965ada3bc1a;p=working%2FSIPServer.git Replace call to nonexistent method 'hold_items_count' with correct code. --- 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]; }