This commit is contained in:
BoHung Chiu 2022-10-16 19:04:40 +08:00
parent 6d18f5fe29
commit fb44e10e82
1 changed files with 1 additions and 1 deletions

View File

@ -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?