Skip to content

Commit

Permalink
[se] Fix bug 55690
Browse files Browse the repository at this point in the history
  • Loading branch information
konovalovsergey committed Mar 1, 2022
1 parent 20e423b commit 0d37903
Show file tree
Hide file tree
Showing 2 changed files with 113 additions and 134 deletions.
16 changes: 6 additions & 10 deletions cell/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -5484,16 +5484,9 @@ var editor;
}
pivot.asc_create(ws, pivotName, cacheDefinition, bbox);
pivot.stashEmptyReportRange();
this._changePivotWithLockExt(pivot, confirmation, true, function() {
this._changePivotWithLockExt(pivot, confirmation, true, function(ws, pivot) {
ws.insertPivotTable(pivot, true, false);
pivot.setChanged(true);
}, function(error, warn) {
t._changePivotEndCheckError(error, warn, function(can) {
if (can) {
//repeate with whole checks because of collaboration changes
t._asc_insertPivot(wb, dataRef, ws, bbox, true);
}
});
});
History.EndTransaction();
return pivot;
Expand Down Expand Up @@ -5560,7 +5553,10 @@ var editor;
t.wbModel.dependencyFormulas.unlockRecal();
History.EndTransaction();
t._changePivotEndCheckError(pivot, changeRes, function () {
t._changePivotWithLockExt(pivot, true, updateSelection, onAction);
pivot = t.wbModel.getPivotTableById(pivot.Get_Id());
if (pivot) {
t._changePivotWithLockExt(pivot, true, updateSelection, onAction);
}
});
});
};
Expand Down Expand Up @@ -5602,7 +5598,7 @@ var editor;
var wsModel = pivot.GetWS();
pivot.stashCurReportRange();

onAction(wsModel);
onAction(wsModel, pivot);

var pivotChanged = pivot.getAndCleanChanged();
var error = c_oAscError.ID.No;
Expand Down
Loading

0 comments on commit 0d37903

Please sign in to comment.