From 7711a3183eee0b2cfc00e40b5c1e77ff12326dbd Mon Sep 17 00:00:00 2001 From: BoHung Chiu Date: Mon, 16 Jan 2023 19:43:03 +0800 Subject: [PATCH] Fix bug. --- app/controllers/admin/asks_controller.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/controllers/admin/asks_controller.rb b/app/controllers/admin/asks_controller.rb index 45ff165..d0101eb 100644 --- a/app/controllers/admin/asks_controller.rb +++ b/app/controllers/admin/asks_controller.rb @@ -393,7 +393,7 @@ class Admin::AsksController < OrbitAdminController end @ask_question.update_attributes(temp_params) - if @ask_question.send_email? + if @ask_question.send_email build_email(@ask_question) end @@ -424,8 +424,6 @@ class Admin::AsksController < OrbitAdminController "reply" => email_er.reply } ) - - OrbitMailer.set_mail(email_er.email).deliver end def export