mirror of
https://github.com/valitydev/redash.git
synced 2024-11-07 09:28:51 +00:00
Merge pull request #713 from alexanderlz/master
Fix: don't add "Copy of" when saving a query
This commit is contained in:
commit
bfb73166c6
@ -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'
|
||||
|
@ -99,7 +99,6 @@
|
||||
data.id = $scope.query.id;
|
||||
} else {
|
||||
data = _.clone($scope.query);
|
||||
data.name = 'Copy of '+data.name;
|
||||
}
|
||||
|
||||
options = _.extend({}, {
|
||||
|
Loading…
Reference in New Issue
Block a user