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

Activity

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

The fix is attached -> IDEMPIERE-3809.patch

Assignee

Ricardo Alexsander Santana

Reporter

Bruno de Melo

Labels

None

Tested By

None

Components

Affects versions

Priority

Major
Configure