]> git.evergreen-ils.org Git - Evergreen.git/commit
Avoid a possible bug in selection list deletion
authorLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Thu, 6 Oct 2011 22:06:22 +0000 (18:06 -0400)
committerBill Erickson <berick@esilibrary.com>
Wed, 26 Oct 2011 21:17:46 +0000 (17:17 -0400)
commit87d60457ef07ad45eeb3724c7865cfb0f811bcac
tree432a885f15c36fc670627f104b8c179f9e01a4ba
parent67f6757e91abf632e2185b2d3d89a1b002f5fcf4
Avoid a possible bug in selection list deletion

This particularly matters for the "ephemeral," unnamed selection list that
Acquisitions General Search uses to hold bib records represented as
lineitems, as that list is deleted for the next run of that kind of
search.

It's possible to get lineitems onto that list that are in a state
other than "new".  Code that deletes this list first deletes the
lineitems that belong to it, but that code formerly assumed that there
are two types of lineitems. "new" ones (that should be deleted) and ones
that belong to purchase orders (that should be deatched).  That doesn't
necessarily cover all possible lineitems on the picklist, so deletion
ultimately fails.

This fixes that.

[update: now this bugfix incorporates a bugfix, the need for which was
detected by Ben Shum. See LP #869581]

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/src/perlmods/OpenILS/Application/Acq/Order.pm