fix error

This commit is contained in:
chiu 2020-08-21 18:17:14 +08:00
parent 4b1e219445
commit 28a3321635
1 changed files with 1 additions and 1 deletions

View File

@ -285,7 +285,7 @@ class Admin::AsksController < OrbitAdminController
all_to_save += [[k,AskFile.new(file: file,ask_question_id: @ask_question.id)]]
end
else
temp_params['custom_values'][k] = @ask_question.custom_values[k]
temp_params['custom_values'][k] = @ask_question.custom_values[k] rescue nil
end
end
flag = @ask_question.save