use camelCase for queryId

pull/4159/head
Jens Ulferts 9 years ago
parent 1616e16361
commit 72e26596bb
  1. 1
      app/controllers/api/experimental/concerns/v3_naming.rb
  2. 2
      frontend/app/components/work-packages/work-package.service.js

@ -62,6 +62,7 @@ module Api::Experimental::Concerns::V3Naming
params[:display_sums] = params.delete(:displaySums)
params[:is_public] = params.delete(:isPublic)
params[:user_id] = params.delete(:userId)
params[:query_id] = params.delete(:queryId)
end
def json_query_as_v3(json_query)

@ -157,7 +157,7 @@ function WorkPackageService($http, PathHelper, UrlParamsHelper, WorkPackagesHelp
getWorkPackagesByQueryId: function(projectIdentifier, queryId) {
var url = projectIdentifier ? PathHelper.apiProjectWorkPackagesPath(projectIdentifier) : PathHelper.apiWorkPackagesPath();
var params = queryId ? { query_id: queryId } : DEFAULT_FILTER_PARAMS;
var params = queryId ? { queryId: queryId } : DEFAULT_FILTER_PARAMS;
return WorkPackageService.doQuery(url, params);
},

Loading…
Cancel
Save