From 2a33594c02e094a87f171d6fcc07d994861276e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Tue, 22 Nov 2016 14:20:06 +0100 Subject: [PATCH] fix(templating): fixed duplicate button bug, fixes #6652 --- public/app/features/templating/editor_ctrl.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/features/templating/editor_ctrl.ts b/public/app/features/templating/editor_ctrl.ts index 2017073ebc8..c5e24741a96 100644 --- a/public/app/features/templating/editor_ctrl.ts +++ b/public/app/features/templating/editor_ctrl.ts @@ -106,7 +106,7 @@ export class VariableEditorCtrl { }; $scope.duplicate = function(variable) { - var clone = _.cloneDeep(variable.getModel()); + var clone = _.cloneDeep(variable.getSaveModel()); $scope.current = variableSrv.createVariableFromModel(clone); $scope.variables.push($scope.current); $scope.current.name = 'copy_of_'+variable.name;