diff --git a/apps/spreadsheeteditor/main/app/controller/DocumentHolder.js b/apps/spreadsheeteditor/main/app/controller/DocumentHolder.js index 807cd029b..c3f720159 100644 --- a/apps/spreadsheeteditor/main/app/controller/DocumentHolder.js +++ b/apps/spreadsheeteditor/main/app/controller/DocumentHolder.js @@ -1479,11 +1479,12 @@ define([ }); documentHolder.pmiCopy.setDisabled(false); documentHolder.pmiInsertEntire.setDisabled(isCellLocked || isTableLocked); - documentHolder.pmiInsertCells.setDisabled(isCellLocked || isTableLocked); + documentHolder.pmiInsertCells.setDisabled(isCellLocked || isTableLocked || inPivot); documentHolder.pmiInsertTable.setDisabled(isCellLocked || isTableLocked); documentHolder.pmiDeleteEntire.setDisabled(isCellLocked || isTableLocked); - documentHolder.pmiDeleteCells.setDisabled(isCellLocked || isTableLocked); + documentHolder.pmiDeleteCells.setDisabled(isCellLocked || isTableLocked || inPivot); documentHolder.pmiDeleteTable.setDisabled(isCellLocked || isTableLocked); + documentHolder.pmiClear.setDisabled(isCellLocked || inPivot); documentHolder.pmiFilterCells.setDisabled(isCellLocked || isTableLocked|| (filterInfo==null) || inPivot || !filterInfo && !this.permissions.canModifyFilter); documentHolder.pmiSortCells.setDisabled(isCellLocked || isTableLocked|| (filterInfo==null) || inPivot || !this.permissions.canModifyFilter); documentHolder.pmiReapply.setDisabled(isCellLocked || isTableLocked|| (isApplyAutoFilter!==true));