Commit 4a1e090a5e3d20bb88fe587183699a00fe27d356
1 parent
dc93a457
Exists in
master
and in
29 other branches
Revert "Fixing method with new solr search"
This reverts commit 2220fe167d588fa1ca900dcef497a875c22b989c. There are some problems with solr (ActionItem1958)
Showing
2 changed files
with
1 additions
and
2 deletions
Show diff stats
app/controllers/my_profile/cms_controller.rb
@@ -294,7 +294,7 @@ class CmsController < MyProfileController | @@ -294,7 +294,7 @@ class CmsController < MyProfileController | ||
294 | 294 | ||
295 | def search | 295 | def search |
296 | query = params[:q] | 296 | query = params[:q] |
297 | - results = query.blank? ? [] : profile.articles.published.find_by_contents(query)[:results] | 297 | + results = query.blank? ? [] : profile.articles.published.find_by_contents(query) |
298 | render :text => article_list_to_json(results), :content_type => 'application/json' | 298 | render :text => article_list_to_json(results), :content_type => 'application/json' |
299 | end | 299 | end |
300 | def media_upload | 300 | def media_upload |
test/functional/cms_controller_test.rb
@@ -9,7 +9,6 @@ class CmsControllerTest < Test::Unit::TestCase | @@ -9,7 +9,6 @@ class CmsControllerTest < Test::Unit::TestCase | ||
9 | fixtures :environments | 9 | fixtures :environments |
10 | 10 | ||
11 | def setup | 11 | def setup |
12 | - Test::Unit::TestCase::setup | ||
13 | @controller = CmsController.new | 12 | @controller = CmsController.new |
14 | @request = ActionController::TestRequest.new | 13 | @request = ActionController::TestRequest.new |
15 | @request.stubs(:ssl?).returns(true) | 14 | @request.stubs(:ssl?).returns(true) |