Bug 9281: FIX add an order from a staged file
authorJonathan Druart <jonathan.druart@biblibre.com>
Thu, 13 Dec 2012 13:17:07 +0000 (14:17 +0100)
committerJared Camins-Esakov <jcamins@cpbibliography.com>
Thu, 24 Jan 2013 13:06:45 +0000 (08:06 -0500)
commit28d4b80f989a6662ed878289bbf65ea2ee1f83b7
tree95bf7bf72de2bb443e9bca6c754866bfd5a9f2d3
parent36431ed14abfac7c1af94f2e48dc4e37ef3c8f45
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 <kyle@bywatersolutions.com>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
All tests pass, error only appearing in the log file.

Test plan:
1) Create a basket
2) Add one or multiple order lines using a staged file and the 'batch' feature.
   This is done by using the "Save" button at the bottom of the page instead
   of the "Add order" link next to a single entry.
3) Check your koha-error_log for the error above.
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
acqui/addorderiso2709.pl