IDEMPIERE-1178 2Pack exporting AD_Role_ID=0 as null

This commit is contained in:
Carlos Ruiz 2013-07-16 09:52:17 -05:00
parent 9cbe18feaf
commit 95bad1508c
1 changed files with 2 additions and 1 deletions

View File

@ -85,7 +85,8 @@ public class ReferenceUtils {
public static String getTableReference(String tableName, String searchColumn, int id, AttributesImpl atts)
{
String keyColumn = tableName + "_ID";
if (id > 0 && id <= PackOut.MAX_OFFICIAL_ID)
if ( (id > 0 && id <= PackOut.MAX_OFFICIAL_ID)
|| (id == 0 && MTable.isZeroIDTable(tableName)))
{
//official id
atts.addAttribute("", "", "reference", "CDATA", "id");