From: Coleman Watts Date: Tue, 2 Feb 2021 01:19:05 +0000 (-0500) Subject: Afform Gui - Reset server_route and is_dashlet when cloning X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=e3e5539badf59f823e23fc03b158c2119120f29d;p=civicrm-core.git Afform Gui - Reset server_route and is_dashlet when cloning --- diff --git a/ext/afform/admin/ang/afGuiEditor/afGuiEditor.component.js b/ext/afform/admin/ang/afGuiEditor/afGuiEditor.component.js index d617cad649..2f4dceff97 100644 --- a/ext/afform/admin/ang/afGuiEditor/afGuiEditor.component.js +++ b/ext/afform/admin/ang/afGuiEditor/afGuiEditor.component.js @@ -33,6 +33,8 @@ } if (editor.mode === 'clone') { delete $scope.afform.name; + delete $scope.afform.server_route; + $scope.afform.is_dashlet = false; $scope.afform.title += ' ' + ts('(copy)'); } $scope.canvasTab = 'layout';