Show all packages if search term is submitted empty
This commit is contained in:
parent
825d1fcff3
commit
b786ba24b0
1 changed files with 1 additions and 1 deletions
|
|
@ -6,7 +6,7 @@ class PackagesController < ApplicationController
|
|||
@packages = @packages.text_search(params[:query])
|
||||
end
|
||||
|
||||
if params[:search]
|
||||
unless params[:search].blank?
|
||||
logger.debug "Searching for #{params[:search]}"
|
||||
@packages = @packages.general_search(params[:search])
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue