[Koha-bugs] [Bug 9224] acqui/finishreceive.pl is not Plack-compatible

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Oct 16 19:10:43 CEST 2013


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9224

--- Comment #2 from Jacek Ablewicz <abl at biblos.pk.edu.pl> ---
Under Plack/mod_perl wrapping, sub update_item() will become a closure,
so after the 1st run it will retain it's own private instances of the
following variables: $booksellerid, $datereceived, $unitprice, $rrp,
$biblionumber.
I.e., in case update_item() gets invoked 2nd+ time (inside
the same process, but for different-subsequent receives) it may
incorrectly flag the (old, wrong) biblionumber for Zebra reindexing,
and erronously modify the current item[s] with the previously
used (wrong) values.

This simple patch should make acqui/finishreceive.pl Plack-compatible.

Test plan:
Test patched acqui/finishreceive.pl script (create and receive some
orders w/ items, etc.). Ensure items are gettting added and/or modified
correctly during receiving process.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list