From ba6ae8ddcf2853cad49a040ea7a2ba4f9c6be877 Mon Sep 17 00:00:00 2001 From: Julien Lancelot Date: Thu, 20 Jun 2013 16:00:59 +0200 Subject: [PATCH] SONAR-4392 Display Filter name if filter is selected --- .../src/main/webapp/WEB-INF/app/controllers/issues_controller.rb | 1 + .../test/java/org/sonar/server/issue/IssueFilterServiceTest.java | 1 + 2 files changed, 2 insertions(+) diff --git a/sonar-server/src/main/webapp/WEB-INF/app/controllers/issues_controller.rb b/sonar-server/src/main/webapp/WEB-INF/app/controllers/issues_controller.rb index 95bb0d1b177..20612978038 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/controllers/issues_controller.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/controllers/issues_controller.rb @@ -49,6 +49,7 @@ class IssuesController < ApplicationController @unchanged = true @criteria_params = criteria_params + @filter = find_filter(params[:id].to_i) issue_filter_result = Internal.issues.execute(params[:id].to_i, @criteria_params) @issue_query = issue_filter_result.query @issues_result = issue_filter_result.result diff --git a/sonar-server/src/test/java/org/sonar/server/issue/IssueFilterServiceTest.java b/sonar-server/src/test/java/org/sonar/server/issue/IssueFilterServiceTest.java index d7690d7278b..0dd94324cbb 100644 --- a/sonar-server/src/test/java/org/sonar/server/issue/IssueFilterServiceTest.java +++ b/sonar-server/src/test/java/org/sonar/server/issue/IssueFilterServiceTest.java @@ -231,6 +231,7 @@ public class IssueFilterServiceTest { DefaultIssueFilter result = service.update(new DefaultIssueFilter().setId(1L).setName("My New Filter"), userSession); assertThat(result.name()).isEqualTo("My New Filter"); + assertThat(result.shared()).isFalse(); verify(issueFilterDao).update(any(IssueFilterDto.class)); } -- 2.39.5