Aggregation for GroupTable groups does not work if GroupTable is created programmatically #530

This commit is contained in:
Daniil Tsarev 2018-06-04 10:21:04 +04:00
parent 0708a72c6b
commit 6dc0b1e181

View File

@ -180,15 +180,8 @@ public class WebGroupTable<E extends Entity> extends WebAbstractTable<CubaGroupT
final Table.Column column = columns.get(entry.getKey());
GroupAggregationCells cells;
if ((cells = groupAggregationCells.get(column)) != null) {
String value = cells.getValue(groupContext.getGroupId());
String cellText = getFormattedValue(column, value);
entry.setValue(cellText);
String groupValue = cells.getValue(groupContext.getGroupId());
if (groupValue != null) {
String groupCellText = getFormattedValue(column, groupValue);
entry.setValue(groupCellText);
}
String value = getFormattedValue(column, entry.getValue());
cells.cells.put(groupContext.getGroupId(), value);
}
}