This commit is contained in:
邱博亞 2024-09-23 22:22:38 +08:00
parent 591a7ff11f
commit c060993ca3
1 changed files with 1 additions and 1 deletions

View File

@ -207,7 +207,7 @@ class AsksController < ApplicationController
all_to_save = []
ask_setting = AskCategorySetting.enabled.where(category_id: params['ask_question']['category_id']).first
override_sort_number = nil
if ask_setting.use_default
if ask_setting && ask_setting.use_default
override_sort_number = ask_setting.default_sort_number
ask_setting = nil
end