From e15c3b1b09f99c7e026185c9ee51721b2a1669e2 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Tue, 14 Oct 2008 13:10:28 -0500 Subject: [PATCH] followup - make barcode_to_borrowernumber() work as named Signed-off-by: Galen Charlton --- C4/SIP/ILS/Item.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/C4/SIP/ILS/Item.pm b/C4/SIP/ILS/Item.pm index 2107458a8a..5afcf1dd4e 100644 --- a/C4/SIP/ILS/Item.pm +++ b/C4/SIP/ILS/Item.pm @@ -237,8 +237,8 @@ sub available { sub barcode_to_borrowernumber ($) { my $known = shift; (defined($known)) or return undef; - my $member = GetMember($known) or return undef; # borrowernumber is default type for GetMember lookup - return $member->{cardnumber}; + my $member = GetMember($known, 'cardnumber') or return undef; # borrowernumber is default type for GetMember lookup + return $member->{borrowernumber}; } sub barcode_is_borrowernumber ($$$) { # because hold_queue only has borrowernumber... my $self = shift; # not really used -- 2.39.5