Skip to content

Commit

Permalink
Change Table Dir only when of column name have a source table
Browse files Browse the repository at this point in the history
  • Loading branch information
e-Evolution committed Feb 24, 2015
1 parent a569514 commit 764d26e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion base/src/org/compiere/model/MColumn.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ public static I_AD_Column setAD_Column(Properties ctx ,I_AD_Column column , Stri
if(element.getAD_Reference_ID() == DisplayType.ID)
{
String columnName = table.get_TableName()+"_ID";
if(!columnName.equals(element.getColumnName()) )
String tableDir = column.getColumnName().replace("_ID", "");
if(!columnName.equals(element.getColumnName()) && MTable.getTable_ID(tableDir) > 0)
{
column.setAD_Reference_ID(DisplayType.TableDir);
}
Expand Down

0 comments on commit 764d26e

Please sign in to comment.