From 1662850d7f4fbd9685e3f84c1cd8342d42a4bbe8 Mon Sep 17 00:00:00 2001 From: Julien Lancelot Date: Thu, 18 Jul 2013 08:42:05 +0200 Subject: [PATCH] When not logged, do not load favorite issue filters --- .../webapp/WEB-INF/app/controllers/issues_controller.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 61d477a205c..98f965c30b6 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 @@ -22,7 +22,7 @@ require 'set' class IssuesController < ApplicationController before_filter :init_options - before_filter :load_filters, :only => [:index, :search, :filter, :manage, :toggle_fav] + before_filter :load_fav_filters, :only => [:index, :search, :filter, :manage, :toggle_fav] PAGE_SIZE = 100 @@ -173,8 +173,8 @@ class IssuesController < ApplicationController @options_for_resolutions = Internal.issues.listResolutions().map { |s| [message('issue.resolution.' + s), s] } end - def load_filters - @favourite_filters = Internal.issues.findFavouriteIssueFiltersForCurrentUser() + def load_fav_filters + @favourite_filters = Internal.issues.findFavouriteIssueFiltersForCurrentUser() if logged_in? end def find_filter(id) -- 2.39.5