Error when packin a Process Parameter by a 2Pack

Description

When the 2Pack contains a Process Parameter that is a direct table to a table that is also imported by this 2Pack, during the packin process, the getAD_Table() from MRefTable instantiate an object from MTable whit MTable.get(Properties ctx, int AD_Table_ID) and as the transaction is not passed the Table is not found by MTable so the system throws an exception. Solution suggestion:

Class: org.compiere.model.MRefTable
Line: 62
Original code: MTable table = MTable.get(getCtx(), getAD_Table_ID());
Code changed: MTable table = MTable.get(getCtx(), getAD_Table_ID(), get_TrxName());

Environment

None

Activity

Show:
Carlos Ruiz
December 15, 2018, 3:28 PM

Thanks , integrated your patch

Bruno de Melo
December 17, 2018, 11:49 AM
Edited

Glad to have contributed .

Assignee

Bruno de Melo

Reporter

Bruno de Melo

Labels

None

Tested By

None

Components

Priority

Major
Configure