From 24a9f3674b9e48ae70d51c18ab32cda827fd46d0 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Wed, 23 Dec 2020 14:05:50 +0300 Subject: [PATCH] [DE] Fix Bug 48078 --- apps/documenteditor/main/app/controller/Toolbar.js | 2 +- apps/documenteditor/main/app/view/DocumentHolder.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/documenteditor/main/app/controller/Toolbar.js b/apps/documenteditor/main/app/controller/Toolbar.js index d5f4d17e2..fa9a5baa5 100644 --- a/apps/documenteditor/main/app/controller/Toolbar.js +++ b/apps/documenteditor/main/app/controller/Toolbar.js @@ -1897,7 +1897,7 @@ define([ })).show(); } else { - this.api.asc_RemoveContentControl(id); + this.api.asc_RemoveContentControlWrapper(id); Common.component.Analytics.trackEvent('ToolBar', 'Remove Content Control'); } } diff --git a/apps/documenteditor/main/app/view/DocumentHolder.js b/apps/documenteditor/main/app/view/DocumentHolder.js index b19a433ae..56ffe81e1 100644 --- a/apps/documenteditor/main/app/view/DocumentHolder.js +++ b/apps/documenteditor/main/app/view/DocumentHolder.js @@ -1880,7 +1880,7 @@ define([ } })).show(); } else if (item.value == 'remove') { - this.api.asc_RemoveContentControl(props.get_InternalId()); + props.get_FormPr() ? this.api.asc_RemoveContentControl(props.get_InternalId()) : this.api.asc_RemoveContentControlWrapper(props.get_InternalId()); } } me.fireEvent('editcomplete', me);