From: Julien Lancelot Date: Fri, 10 Oct 2014 12:48:50 +0000 (+0200) Subject: SONAR-5708 This is not possible to create or update a filter with the criteria "Assig... X-Git-Tag: 4.5.1-RC1~43 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=bd18f3974b18e03f40ca14b86b82a8851124b107;p=sonarqube.git SONAR-5708 This is not possible to create or update a filter with the criteria "Assignee: Not assigned" --- diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/issues_controller.rb b/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/issues_controller.rb index 7690cea09be..92f2154bb44 100644 --- a/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/issues_controller.rb +++ b/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/issues_controller.rb @@ -84,7 +84,7 @@ class IssuesController < ApplicationController require_parameters :id @filter = Internal.issues.updateIssueFilterQuery(params[:id].to_i, criteria_params) - redirect_to :action => 'filter', :id => @filter.id.to_s + render :text => @filter.id.to_s, :status => 200 end # GET /issues/edit_form/ @@ -186,7 +186,7 @@ class IssuesController < ApplicationController new_params = params.clone new_params.delete('controller') new_params.delete('action') - translate_unassigned(new_params) + new_params end def init_params @@ -197,16 +197,6 @@ class IssuesController < ApplicationController Internal.issues.sanitizeFilterQuery(params).to_hash end - def translate_unassigned(issues_query_params) - if issues_query_params.has_key?(:assignees) && issues_query_params[:assignees] == '' - issues_query_params.delete(:assignees) - issues_query_params[:assigned] = false - else - issues_query_params[:assigned] = nil - end - issues_query_params - end - def issues_query_params_from_filter(filter) Internal.issues.deserializeFilterQuery(filter).to_hash end