IDEMPIERE-1029 Error on Account Element Window / Based on patch from Juliana Corredor
This commit is contained in:
parent
73a562b73c
commit
bdb7b868ef
|
@ -1242,8 +1242,16 @@ DataStatusListener, IADTabpanel, IdSpace, IFieldEditorContainer
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Boolean summary = (Boolean) gridTab.getValue("IsSummary");
|
Object summaryobj = gridTab.getValue("IsSummary");
|
||||||
if (summary != null && !summary.booleanValue() == data.isSummary()) {
|
boolean summary = false;
|
||||||
|
if (summaryobj != null) {
|
||||||
|
if (summaryobj instanceof Boolean) {
|
||||||
|
summary = ((Boolean)summaryobj).booleanValue();
|
||||||
|
} else {
|
||||||
|
summary = "Y".equals(summaryobj.toString());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (summary != data.isSummary()) {
|
||||||
data.setSummary(summary);
|
data.setSummary(summary);
|
||||||
changed = true;
|
changed = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue