Commit 99872db5153ba76564c83c5b06fe4ca93827b7dc

Authored by AntonioTerceiro
1 parent 14b4ab5b

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 94 childs = []
95 95 if hits > 0
96 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 98 [child, child_hits]
99 99 end.select{|child, child_hits| child_hits > 0 }
100 100 end
... ...