fix error

This commit is contained in:
Peter Chiu 2023-09-27 10:55:11 +08:00
parent 2ee2a616e4
commit 4ac9278f56
1 changed files with 1 additions and 1 deletions

View File

@ -475,7 +475,7 @@ class Admin::AsksController < OrbitAdminController
def order_fields
prepare_category_select
ask_setting = AskCategorySetting.where(:category_id=>@category_id).first
@disp_fields_infos = AskSetting.get_disp_fields_infos(false, ask_setting, true)
@disp_fields_infos = AskSetting.get_disp_fields_infos(false, ask_setting, (ask_setting ? true : false))
end
def prepare_category_select
@cats_relations = get_categories_info_for_ask