Commit 9873846031b4d15476c4ac998fdd064d3844991d

Authored by Antonio Terceiro
1 parent 6ea3f89e

Allow blank search

(solr brings everything with an empty query string)
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/controllers/my_profile/cms_controller.rb
... ... @@ -265,7 +265,7 @@ class CmsController < MyProfileController
265 265  
266 266 def search
267 267 query = params[:q]
268   - results = query.blank? ? [] : profile.files.published.find_by_contents(query)[:results]
  268 + results = profile.files.published.find_by_contents(query)[:results]
269 269 render :text => article_list_to_json(results), :content_type => 'application/json'
270 270 end
271 271  
... ...