Commit 2220fe167d588fa1ca900dcef497a875c22b989c
1 parent
6409d6cc
Exists in
master
and in
29 other branches
Fixing method with new solr search
(ActionItem1958)
Showing
2 changed files
with
2 additions
and
1 deletions
Show diff stats
app/controllers/my_profile/cms_controller.rb
... | ... | @@ -291,7 +291,7 @@ class CmsController < MyProfileController |
291 | 291 | |
292 | 292 | def search |
293 | 293 | query = params[:q] |
294 | - results = query.blank? ? [] : profile.articles.published.find_by_contents(query) | |
294 | + results = query.blank? ? [] : profile.articles.published.find_by_contents(query)[:results] | |
295 | 295 | render :text => article_list_to_json(results), :content_type => 'application/json' |
296 | 296 | end |
297 | 297 | def media_upload | ... | ... |
test/functional/cms_controller_test.rb