Element name for ad_table is "AD_Table", not "table".
This commit is contained in:
parent
1ebc0d87ec
commit
523d6dd5c8
|
@ -58,15 +58,15 @@ public class ColumnElementHandler extends AbstractElementHandler {
|
||||||
element.defer = true;
|
element.defer = true;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
List<String> excludes = defaultExcludeList(X_AD_Column.Table_Name);
|
List<String> excludes = defaultExcludeList(X_AD_Column.Table_Name);
|
||||||
String columnName = getStringValue(element, "ColumnName", excludes);
|
String columnName = getStringValue(element, "ColumnName", excludes);
|
||||||
|
|
||||||
MColumn mColumn = findPO(ctx, element);
|
MColumn mColumn = findPO(ctx, element);
|
||||||
if (mColumn == null) {
|
if (mColumn == null) {
|
||||||
int tableid = 0;
|
int tableid = 0;
|
||||||
if (getParentId(element, I_AD_Table.Table_Name) > 0) {
|
if (getParentId(element, I_AD_Table.Table_Name) > 0) {
|
||||||
tableid = getParentId(element, "table");
|
tableid = getParentId(element, I_AD_Table.Table_Name);
|
||||||
} else {
|
} else {
|
||||||
mColumn = new MColumn(ctx, 0, getTrxName(ctx));
|
mColumn = new MColumn(ctx, 0, getTrxName(ctx));
|
||||||
PoFiller filler = new PoFiller(ctx, mColumn, element, this);
|
PoFiller filler = new PoFiller(ctx, mColumn, element, this);
|
||||||
|
@ -78,8 +78,8 @@ public class ColumnElementHandler extends AbstractElementHandler {
|
||||||
if (mColumn.getAD_Column_ID() == 0 && isOfficialId(element, "AD_Column_ID")) {
|
if (mColumn.getAD_Column_ID() == 0 && isOfficialId(element, "AD_Column_ID")) {
|
||||||
mColumn.setAD_Column_ID(getIntValue(element, "AD_Column_ID"));
|
mColumn.setAD_Column_ID(getIntValue(element, "AD_Column_ID"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
mColumn.setColumnName(columnName);
|
mColumn.setColumnName(columnName);
|
||||||
mColumn.setIsSyncDatabase(getStringValue(element, "IsSyncDatabase", excludes));
|
mColumn.setIsSyncDatabase(getStringValue(element, "IsSyncDatabase", excludes));
|
||||||
|
|
||||||
|
@ -89,7 +89,7 @@ public class ColumnElementHandler extends AbstractElementHandler {
|
||||||
element.defer = true;
|
element.defer = true;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!mColumn.is_new() && !mColumn.is_Changed())
|
if (!mColumn.is_new() && !mColumn.is_Changed())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue