From 28a3321635d7ecc357e1c1bc9a53b6eb43f842cf Mon Sep 17 00:00:00 2001 From: chiu Date: Fri, 21 Aug 2020 18:17:14 +0800 Subject: [PATCH] fix error --- app/controllers/admin/asks_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/admin/asks_controller.rb b/app/controllers/admin/asks_controller.rb index fed4633..50a0543 100644 --- a/app/controllers/admin/asks_controller.rb +++ b/app/controllers/admin/asks_controller.rb @@ -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