diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2014-10-10 14:48:50 +0200 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@sonarsource.com> | 2014-10-10 14:48:50 +0200 |
commit | bd18f3974b18e03f40ca14b86b82a8851124b107 (patch) | |
tree | 7b3a31a1e3db0890c0fcf00027fc6ed7f597454d /server/sonar-web/src/main | |
parent | 631ce5d6a76693d672791977810f19405f187153 (diff) | |
download | sonarqube-bd18f3974b18e03f40ca14b86b82a8851124b107.tar.gz sonarqube-bd18f3974b18e03f40ca14b86b82a8851124b107.zip |
SONAR-5708 This is not possible to create or update a filter with the criteria "Assignee: Not assigned"
Diffstat (limited to 'server/sonar-web/src/main')
-rw-r--r-- | server/sonar-web/src/main/webapp/WEB-INF/app/controllers/issues_controller.rb | 14 |
1 files changed, 2 insertions, 12 deletions
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/<filter id> @@ -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] == '<unassigned>' - 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 |