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

Attachments

2
  • 22 Nov 2018, 02:39 PM
  • 22 Nov 2018, 02:35 PM

Activity

Show:

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

Glad to have contributed .

Carlos Ruiz December 15, 2018 at 3:28 PM

Thanks , integrated your patch

Fixed

Details

Assignee

Reporter

Components

Priority

Created November 22, 2018 at 2:36 PM
Updated February 1, 2019 at 1:44 PM
Resolved December 15, 2018 at 3:28 PM

Flag notifications