diff --git a/app/controllers/api/experimental/concerns/v3_naming.rb b/app/controllers/api/experimental/concerns/v3_naming.rb index 6bde94b1e7..0d6faeb779 100644 --- a/app/controllers/api/experimental/concerns/v3_naming.rb +++ b/app/controllers/api/experimental/concerns/v3_naming.rb @@ -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) diff --git a/frontend/app/components/work-packages/work-package.service.js b/frontend/app/components/work-packages/work-package.service.js index a9a9c03bc7..218b1d59a5 100644 --- a/frontend/app/components/work-packages/work-package.service.js +++ b/frontend/app/components/work-packages/work-package.service.js @@ -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); },