Fix bug.
This commit is contained in:
1 parent
6d18f5fe29
commit
fb44e10e82
1 file changed
+1
-1
@@ -196,7 +196,7 @@ class Admin::AsksController < OrbitAdminController
|
||||
.any_in(:identity => filter2("identity"))
|
||||
.any_in(:situation => filter2("situation"))
|
||||
end
|
||||
@askquestions = @askquestions.where(:category_id=>category_id)
|
||||
@askquestions = @askquestions.where(:category_id=>category_id) if category_id
|
||||
# 分頁
|
||||
@askquestions = search_data(@askquestions,[:title]).page(params[:page]).per(10)
|
||||
if request.xhr?
|
||||
|
||||
Reference in new issue
Block a user