Fix email_addresses bug.
This commit is contained in:
parent
8494f37661
commit
40aa32c15b
|
@ -189,8 +189,9 @@ class Bulletin
|
||||||
|
|
||||||
def email_addresses
|
def email_addresses
|
||||||
addresses = self.email_members.collect{|member| member.email} rescue []
|
addresses = self.email_members.collect{|member| member.email} rescue []
|
||||||
addresses = addresses +[self.other_mailaddress] if !self.other_mailaddress.blank?
|
addresses = addresses +self.other_mailaddress.split(",") if !self.other_mailaddress.blank?
|
||||||
addresses.flatten
|
addresses = addresses.flatten.select{|e| e.present?}.map{|e| e.strip}
|
||||||
|
addresses
|
||||||
end
|
end
|
||||||
|
|
||||||
def email
|
def email
|
||||||
|
|
Loading…
Reference in New Issue