Skip to content

Commit

Permalink
[se] Fix CT_pivotTableDefinition.getItemsIndexesByItemFieldsMap for d…
Browse files Browse the repository at this point in the history
…efaultSubtotal=false
  • Loading branch information
konovalovsergey committed Feb 6, 2024
1 parent be69cd5 commit 751d04b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cell/model/PivotTables.js
Original file line number Diff line number Diff line change
Expand Up @@ -7893,7 +7893,7 @@ CT_pivotTableDefinition.prototype.getItemsIndexesByItemFieldsMap = function(rowI
let rowX = rowItemX[rowItemX.length - 1];
visible = pivotField.asc_getVisible(rowX.getV())
}
canShowSubtotal = (pivotField.defaultSubtotal || !visible);
canShowSubtotal = (1 === pivotField.asc_getSubtotals(true).length) || !visible || (maxRowR === rowFields.length - 1);
}
if (!canShowSubtotal) {
rowItemIndex = null;
Expand All @@ -7918,7 +7918,7 @@ CT_pivotTableDefinition.prototype.getItemsIndexesByItemFieldsMap = function(rowI
let colX = colItemX[colItemX.length - 1];
visible = pivotField.asc_getVisible(colX.getV())
}
canShowSubtotal = (pivotField.defaultSubtotal || !visible);
canShowSubtotal = (1 === pivotField.asc_getSubtotals(true).length) || !visible || (maxColR === colFields.length - 1);
}
if (!canShowSubtotal) {
colItemIndex = null;
Expand Down

0 comments on commit 751d04b

Please sign in to comment.