Export of AD_Element_ID reference is not correct, search column for AD_Element is ColumnName, not Name.

This commit is contained in:
Heng Sin Low 2010-12-27 08:29:31 +08:00
parent f552160532
commit 1fa4f0c384
1 changed files with 4 additions and 4 deletions

View File

@ -232,7 +232,7 @@ public class PoExporter {
tableName = columnName.substring(0, columnName.length() - 3);
if (tableName.equalsIgnoreCase("ad_table")) {
searchColumn = "TableName";
} else if (tableName.equalsIgnoreCase("ad_column")) {
} else if (tableName.equalsIgnoreCase("ad_column") || tableName.equalsIgnoreCase("ad_element")) {
searchColumn = "ColumnName";
}
}
@ -268,7 +268,7 @@ public class PoExporter {
if (searchColumn.endsWith("_ID")) {
if (tableName.equalsIgnoreCase("ad_table")) {
searchColumn = "TableName";
} else if (tableName.equalsIgnoreCase("ad_column")){
} else if (tableName.equalsIgnoreCase("ad_column") || tableName.equalsIgnoreCase("ad_element")){
searchColumn = "ColumnName";
} else {
int AD_Table_ID = MTable.getTable_ID(tableName);