Replace call to nonexistent method 'hold_items_count' with
authordjfiander <djfiander>
Wed, 26 Apr 2006 14:19:52 +0000 (14:19 +0000)
committerdjfiander <djfiander>
Wed, 26 Apr 2006 14:19:52 +0000 (14:19 +0000)
correct code.

ILS/Patron.pm

index f4bd188..6affa67 100644 (file)
@@ -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];
 }