From 58a78b826508599e9f854b88fd6b6d8838b9e891 Mon Sep 17 00:00:00 2001 From: bohung Date: Mon, 17 Oct 2022 17:18:34 +0800 Subject: [PATCH] Fix bug. --- app/models/ask_question.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/ask_question.rb b/app/models/ask_question.rb index 8132f50..3530f5e 100644 --- a/app/models/ask_question.rb +++ b/app/models/ask_question.rb @@ -51,8 +51,8 @@ class AskQuestion end end email_address = email_address +[self.mail] if !self.mail.blank? - email_address.flatten - email_address.uniq! + email_address = email_address.flatten + email_address.uniq end def get_serial_number(last_serial_number=nil, display_length=nil) if display_length.nil? && last_serial_number.nil?