IDEMPIERE-1029 Error on Account Element Window / Based on patch from Juliana Corredor

This commit is contained in:
Carlos Ruiz 2013-06-12 16:14:59 -05:00
parent 73a562b73c
commit bdb7b868ef
1 changed files with 11 additions and 3 deletions

View File

@ -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;
} }