Error when packin a workflow node by a 2Pack

Description

When the 2Pack contains a WorkflowNode that has a column attribute that is also inserted by this 2Pack, the beforeSave validation of the MWFNode model instantiates this column without passing the current transaction and with this the system throws an exception. Suggestion of code correction:

Branch: default
Commit hash: 6edd856
Class: org.compiere.wf.MWFNode
Line: 614
Original code: MColumn column = MColumn.get (getCtx (), getAD_Column_ID ());
Code changed: MColumn column = MColumn.get (getCtx (), getAD_Column_ID (), get_TrxName ());

Environment

None

Attachments

1

Activity

Show:

Ricardo Alexsander Santana November 7, 2018 at 4:54 PM

The fix is attached -> IDEMPIERE-3809.patch

Fixed

Details

Assignee

Reporter

Components

Affects versions

Priority

Created November 7, 2018 at 4:27 PM
Updated February 1, 2019 at 1:44 PM
Resolved December 15, 2018 at 3:32 PM