Merge pull request #713 from alexanderlz/master

Fix: don't add "Copy of" when saving a query
This commit is contained in:
Arik Fraimovich 2015-12-20 14:36:46 +02:00
commit bfb73166c6
2 changed files with 1 additions and 2 deletions

View File

@ -67,9 +67,9 @@
$scope.duplicateQuery = function() {
Events.record(currentUser, 'fork', 'query', $scope.query.id);
$scope.query.name = 'Copy of (#'+$scope.query.id+') '+$scope.query.name;
$scope.query.id = null;
$scope.query.schedule = null;
$scope.saveQuery({
successMessage: 'Query forked',
errorMessage: 'Query could not be forked'

View File

@ -99,7 +99,6 @@
data.id = $scope.query.id;
} else {
data = _.clone($scope.query);
data.name = 'Copy of '+data.name;
}
options = _.extend({}, {