From a7beaebee2d82119e77ac517f1d4f80dac40bdd5 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