IDEMPIERE-969 zk: Translation gets lost in trees

This commit is contained in:
Carlos Ruiz 2013-05-28 16:05:53 -05:00
parent 96a8e4b6dc
commit 3876b6e5aa
1 changed files with 9 additions and 7 deletions

View File

@ -1232,14 +1232,16 @@ DataStatusListener, IADTabpanel, IdSpace, IFieldEditorContainer
if (ti.getPage() == null) {
Events.echoEvent(ON_DEFER_SET_SELECTED_NODE, this, null);
}
boolean changed = false;
String name = (String) gridTab.getValue("Name");
if (name != null && !name.equals(data.getName())) {
data.setName(name);
changed = true;
}
if (Env.isBaseLanguage(Env.getCtx(), "AD_Menu")) {
String name = (String) gridTab.getValue("Name");
if (name != null && !name.equals(data.getName())) {
data.setName(name);
changed = true;
}
}
Boolean summary = (Boolean) gridTab.getValue("IsSummary");
if (summary != null && !summary.booleanValue() == data.isSummary()) {
data.setSummary(summary);