Afform Gui - Reset server_route and is_dashlet when cloning
authorColeman Watts <coleman@civicrm.org>
Tue, 2 Feb 2021 01:19:05 +0000 (20:19 -0500)
committerColeman Watts <coleman@civicrm.org>
Tue, 2 Feb 2021 15:12:32 +0000 (10:12 -0500)
ext/afform/admin/ang/afGuiEditor/afGuiEditor.component.js

index d617cad64930529ecb7f20365cfd68715c7f3a2a..2f4dceff97bc453957852ad6fae06fb766f6db42 100644 (file)
@@ -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';