[ 1846592 ] 2pack do not import process that are into a tab

- Merge fix from branch 350
This commit is contained in:
Heng Sin Low 2007-12-13 07:55:05 +00:00
parent 905c4f9187
commit f7ae7069f3
1 changed files with 11 additions and 3 deletions

View File

@ -108,9 +108,17 @@ public class TabElementHandler extends AbstractElementHandler {
m_Tab.setAD_Image_ID(id); m_Tab.setAD_Image_ID(id);
} }
if (getStringValue(atts,"ADProcessNameID")!= null){ if (getStringValue(atts,"ADProcessNameID")!= null){
name = atts.getValue("ADProcessNameID"); name = atts.getValue("ADProcessNameID");
id = get_IDWithColumn(ctx, "AD_Process", "Name", name); if (name != null && name.trim().length() > 0) {
m_Tab.setAD_Process_ID(id); id = get_IDWithColumn(ctx, "AD_Process", "Name", name);
if (id <= 0) {
element.defer = true;
element.unresolved = "AD_Process: " + name;
return;
}
m_Tab.setAD_Process_ID(id);
}
} }
if (getStringValue(atts,"ADTableNameID")!= null){ if (getStringValue(atts,"ADTableNameID")!= null){
name = atts.getValue("ADTableNameID"); name = atts.getValue("ADTableNameID");