Commit 99872db5153ba76564c83c5b06fe4ca93827b7dc
1 parent
14b4ab5b
Exists in
master
and in
22 other branches
ActionItem485: fixing another call to calculate_find_options
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@2183 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/controllers/public/search_controller.rb
@@ -94,7 +94,7 @@ class SearchController < ApplicationController | @@ -94,7 +94,7 @@ class SearchController < ApplicationController | ||
94 | childs = [] | 94 | childs = [] |
95 | if hits > 0 | 95 | if hits > 0 |
96 | childs = cat.children.map do |child| | 96 | childs = cat.children.map do |child| |
97 | - child_hits = @finder.count(asset, @filtered_query, calculate_find_options(asset, nil, nil, child, @region, params[:radius])) | 97 | + child_hits = @finder.count(asset, @filtered_query, calculate_find_options(asset, nil, nil, child, @region, params[:radius], nil, nil)) |
98 | [child, child_hits] | 98 | [child, child_hits] |
99 | end.select{|child, child_hits| child_hits > 0 } | 99 | end.select{|child, child_hits| child_hits > 0 } |
100 | end | 100 | end |