From cfedfac08f36000b4fb4046fadc38f3c4fc06655 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Wed, 20 Mar 2019 13:24:55 -0400 Subject: [PATCH] Bug 22540: (QA Follow-up) borrowernumber is not an accessor for C4::SIP::ILS::Patron, access is via hashref --- C4/SIP/ILS/Transaction/Hold.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/SIP/ILS/Transaction/Hold.pm b/C4/SIP/ILS/Transaction/Hold.pm index d834516d10..c6eadaf974 100644 --- a/C4/SIP/ILS/Transaction/Hold.pm +++ b/C4/SIP/ILS/Transaction/Hold.pm @@ -54,7 +54,7 @@ sub do_hold { $self->ok(0); return $self; } - my $branch = ( $self->pickup_location || $self->{patron}->branchcode ); + my $branch = ( $self->pickup_location || $self->{patron}->{branchcode} ); unless ($branch) { $self->screen_msg('No branch specified (or found w/ patron).'); $self->ok(0); -- 2.17.2 (Apple Git-113)