From afc8cae3f9f38bec7a5b2521b4e59c8e9d48c158 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 13 Dec 2012 14:17:07 +0100 Subject: [PATCH] Bug 9281: FIX add an order from a staged file In GetMember the hash parameter contained 'C4::Members' => 'borrowernumber' XXX => undef Test plan: In the acquition module, try to add an order to a basket from a staged file. Without this patch, you get an error: DBD::mysql::st execute failed: called with 2 bind variables when 1 are needed at /home/koha/src/C4/Members.pm line 559 Signed-off-by: Kyle M Hall --- acqui/addorderiso2709.pl | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/acqui/addorderiso2709.pl b/acqui/addorderiso2709.pl index 4942571..c4f889f 100755 --- a/acqui/addorderiso2709.pl +++ b/acqui/addorderiso2709.pl @@ -189,7 +189,7 @@ if ($op eq ""){ SetImportRecordStatus( $biblio->{'import_record_id'}, 'imported' ); } # 3rd add order - my $patron = C4::Members->GetMember( borrowernumber => $loggedinuser ); + my $patron = C4::Members::GetMember( borrowernumber => $loggedinuser ); my $branch = C4::Branch->GetBranchDetail( $patron->{branchcode} ); # get quantity in the MARC record (1 if none) my $quantity = GetMarcQuantity($marcrecord, C4::Context->preference('marcflavour')) || 1; -- 1.7.2.5