]> git.koha-community.org Git - koha.git/commit
Bug 22611: Correction for call to get create_item in EDI.pm
authorColin Campbell <colin.campbell@ptfs-europe.com>
Mon, 1 Apr 2019 11:16:51 +0000 (12:16 +0100)
committerNick Clemens <nick@bywatersolutions.com>
Sat, 23 Mar 2019 08:30:17 +0000 (08:30 +0000)
commitf6bc67e851722451a970d085f51fb11fb03e21b3
treec54606c19eaa61e60fe1be58159b271ca18462b8
parent6666918dd661b0207366becefd1480257197a353
Bug 22611: Correction for call to get create_item in EDI.pm

There was a typo in the addition of a call to
effective_create_items causing processing to abort after adding
a single copy.

This patch reverts to using the C4::Context call as used for the
first copy created, the intended call to effective_create_items
is a wrapper around that as the field in the basket is guaranteed
to be null (its not set when we call AddBasket). Being consistent
and explicit in what we call should guard against future changes
in dependencies exposing the logic flaw

Added some comments to make logical flow of code clearer

Signed-off-by: Liz Rea <wizzyrea@gmail.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Koha/EDI.pm