mirror of
https://github.com/internetee/registry.git
synced 2025-05-16 17:37:17 +02:00
Replace newlines in contacts import
This commit is contained in:
parent
e64622b372
commit
cc9384eafa
2 changed files with 2 additions and 2 deletions
|
@ -8,7 +8,7 @@
|
|||
%dd= @contact.org_name
|
||||
|
||||
%dt= t(:street)
|
||||
%dd= @contact.street
|
||||
%dd= @contact.street.gsub("\n", '<br>').html_safe
|
||||
|
||||
%dt= t(:city)
|
||||
%dd= @contact.city
|
||||
|
|
|
@ -166,7 +166,7 @@ namespace :import do
|
|||
user,
|
||||
x.country.try(:strip),
|
||||
x.id,
|
||||
[x.street1.try(:strip), x.street2.try(:strip), x.street3.try(:strip)].join('\n'),
|
||||
[x.street1.try(:strip), x.street2.try(:strip), x.street3.try(:strip)].join("\n"),
|
||||
x.city.try(:strip),
|
||||
x.postalcode.try(:strip),
|
||||
x.stateorprovince.try(:strip),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue