projects
/
SIPServer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
754dcff
)
Replace call to nonexistent method 'hold_items_count' with
author
djfiander
<djfiander>
Wed, 26 Apr 2006 14:19:52 +0000
(14:19 +0000)
committer
djfiander
<djfiander>
Wed, 26 Apr 2006 14:19:52 +0000
(14:19 +0000)
correct code.
ILS/Patron.pm
patch
|
blob
|
history
diff --git
a/ILS/Patron.pm
b/ILS/Patron.pm
index
f4bd188
..
6affa67
100644
(file)
--- 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];
}