From 7367cafd9c92d8c0fa8393297a6138d3ff75f5d0 Mon Sep 17 00:00:00 2001 From: Luciano Prestes Cavalcanti Date: Tue, 6 Oct 2015 19:33:40 +0200 Subject: [PATCH] Fix bug on search by software highlights block --- lib/ext/search_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ext/search_controller.rb b/lib/ext/search_controller.rb index 2a2856c..817e46d 100644 --- a/lib/ext/search_controller.rb +++ b/lib/ext/search_controller.rb @@ -89,7 +89,7 @@ class SearchController def get_communities_list software_list filtered_community_list = [] software_list.each do |software| - if @all_selected || software.public_software? + if !@public_software_selected || software.public_software? filtered_community_list << software.community unless software.community.nil? end end -- libgit2 0.21.2