IDEMPIERE-719 Tree node labels are not updated when related record changes.
IDEMPIERE-682 Tree in the window sales region doesnt refresh when you change a register.
This commit is contained in:
parent
1daa06b269
commit
ee485727f7
|
@ -1260,6 +1260,24 @@ 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;
|
||||
}
|
||||
|
||||
Boolean summary = (Boolean) gridTab.getValue("IsSummary");
|
||||
if (summary != null && !summary.booleanValue() == data.isSummary()) {
|
||||
data.setSummary(summary);
|
||||
changed = true;
|
||||
}
|
||||
|
||||
if (changed) {
|
||||
treeNode.setData(data);
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue