Bug fix
This commit is contained in:
parent
d422a7843f
commit
8e710a7b50
@ -19,7 +19,7 @@ class Public::NeedsController < ApplicationController
|
||||
@needs = @needs.search(params[:q])
|
||||
end
|
||||
|
||||
if(params[:c] != '')
|
||||
if(params[:c] and params[:c] != '')
|
||||
@category = NeedCategory.find(params[:c])
|
||||
ids = @category.child_ids
|
||||
@needs = @needs.where(category_id: ids)
|
||||
|
Loading…
x
Reference in New Issue
Block a user