Merge branch 'master' of github.com:grafana/grafana
This commit is contained in:
@@ -77,6 +77,11 @@ export class VariableEditorCtrl {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($scope.current.type === 'query' && $scope.current.query.match(new RegExp('\\$' + $scope.current.name))) {
|
||||
$scope.appEvent('alert-warning', ['Validation', 'Query contains variable self-reference']);
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user