]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-4554 Kicked out of Issues filter when applying bulk change on a filter
authorJulien Lancelot <julien.lancelot@gmail.com>
Tue, 13 Aug 2013 09:51:03 +0000 (11:51 +0200)
committerJulien Lancelot <julien.lancelot@gmail.com>
Tue, 13 Aug 2013 09:51:15 +0000 (11:51 +0200)
sonar-server/src/main/webapp/WEB-INF/app/controllers/issues_controller.rb

index da39a9472f860d58ba8b096351858761106632a1..5015bd7503e5a6d32e5cccd039c0e8c99339dc15 100644 (file)
@@ -33,12 +33,16 @@ class IssuesController < ApplicationController
 
   # GET /issues/search
   def search
+    @first_search = issues_query_params_sanitized.empty?
+    @issues_query_params = criteria_params
+
     if params[:id]
       @filter = find_filter(params[:id].to_i)
+      @first_search = false
+      issue_filter_result = Internal.issues.execute(params[:id].to_i, @issues_query_params)
+    else
+      issue_filter_result = Internal.issues.execute(@issues_query_params)
     end
-    @first_search = issues_query_params_sanitized.empty?
-    @issues_query_params = criteria_params
-    issue_filter_result = Internal.issues.execute(@issues_query_params)
     @issues_query = issue_filter_result.query
     @issues_result = issue_filter_result.result