Commit fc05f36755b28402b891c1ee07a21b1b0c647bc4
1 parent
0f829cb7
Exists in
master
and in
29 other branches
Small fix for BrowseController
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/controllers/public/browse_controller.rb
... | ... | @@ -47,7 +47,7 @@ class BrowseController < PublicController |
47 | 47 | @results = @environment.articles.published.text_articles.send(@filter) |
48 | 48 | |
49 | 49 | if !params[:query].blank? |
50 | - @results = @results.find_by_contents(params[:query]) | |
50 | + @results = @results.find_by_contents(params[:query])[:results] | |
51 | 51 | end |
52 | 52 | @results = @results.compact.paginate(:per_page => per_page, :page => params[:page]) |
53 | 53 | end | ... | ... |