ACQ lineitem history view fails on deleted picklist
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Evergreen 2.5+
Steps to reproduce:
1. Create a picklist with a lineitem
2. Add the lineitem to a PO
3. Delete the original picklist
4. In the PO view, choose "View History" in the lineitem actions selector.
5. The history page fails to display any entries.
Reported error:
Status: open-ils.pcrud: no object of class acqpl found with primary key id of 6
Method:
open-ils.pcrud open-ils.
--
It's valid for a historical lineitem entry to point to a now-deleted picklist, but PCRUD retrieval fails, since it attempts to perform a permission check (context org unit lookup) using the deleted picklist. The history retrieval code should probably be moved into a proper API call that performs a single permission check on the current form of the lineitem and returns all history objects, regardless of their previous state.
tags: | added: acq-lineitem acq-selectionlists |
Confirmed on 3.2-beta.