瀏覽代碼

removes uid when using 'save as'

closes #10720
bergquist 8 年之前
父節點
當前提交
0c98c4db30
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      public/app/features/dashboard/save_as_modal.ts

+ 1 - 0
public/app/features/dashboard/save_as_modal.ts

@@ -46,6 +46,7 @@ export class SaveDashboardAsModalCtrl {
     var dashboard = this.dashboardSrv.getCurrent();
     var dashboard = this.dashboardSrv.getCurrent();
     this.clone = dashboard.getSaveModelClone();
     this.clone = dashboard.getSaveModelClone();
     this.clone.id = null;
     this.clone.id = null;
+    this.clone.uid = '';
     this.clone.title += ' Copy';
     this.clone.title += ' Copy';
     this.clone.editable = true;
     this.clone.editable = true;
     this.clone.hideControls = false;
     this.clone.hideControls = false;