Fix bug.
This commit is contained in:
parent
591a7ff11f
commit
c060993ca3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue