Skip to content

Commit

Permalink
Merge pull request #1218 from getredash/arikfr-patch-1
Browse files Browse the repository at this point in the history
Fix: updated result not being saved when changing query text.
  • Loading branch information
arikfr authored Jul 28, 2016
2 parents 5b20fe2 + 295ca92 commit a7cc1ee
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions rd_ui/app/scripts/controllers/query_view.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,7 @@
}
data.id = $scope.query.id;
} else {
data = _.pick($scope.query, ["schedule", "query", "id", "description", "name", "data_source_id", "options"]);
if ($scope.query.isNew()) {
data['latest_query_data_id'] = $scope.query.latest_query_data_id;
}
data = _.pick($scope.query, ["schedule", "query", "id", "description", "name", "data_source_id", "options", "latest_query_data_id"]);
}

options = _.extend({}, {
Expand Down

0 comments on commit a7cc1ee

Please sign in to comment.