fix error
This commit is contained in:
parent
029cd6881a
commit
7b0f6ddd10
|
@ -277,9 +277,9 @@ class Admin::AsksController < OrbitAdminController
|
||||||
ask_setting = AskSetting.create() if ask_setting.nil?
|
ask_setting = AskSetting.create() if ask_setting.nil?
|
||||||
end
|
end
|
||||||
if temp_params['custom_values'].nil?
|
if temp_params['custom_values'].nil?
|
||||||
temp_params['custom_values'] = ask_setting.custom_values
|
temp_params['custom_values'] = @ask_question.custom_values
|
||||||
else
|
else
|
||||||
temp_params['custom_values'] = ask_setting.custom_values.merge(temp_params['custom_values'])
|
temp_params['custom_values'] = @ask_question.custom_values.merge(temp_params['custom_values'])
|
||||||
end
|
end
|
||||||
ask_setting.custom_fields.select{|k,v| v['type']=='file' || v['type']=='image'}.each do |k,v|
|
ask_setting.custom_fields.select{|k,v| v['type']=='file' || v['type']=='image'}.each do |k,v|
|
||||||
file = temp_params['custom_values'][k] rescue nil
|
file = temp_params['custom_values'][k] rescue nil
|
||||||
|
|
Loading…
Reference in New Issue