From: Sven Schöling Date: Thu, 24 Jul 2008 15:10:37 +0000 (+0000) Subject: Adressenfix X-Git-Tag: release-2.6.0beta1~40 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=963c504890e01b787eba0a81038092e7e0f3db03;p=kivitendo-erp.git Adressenfix --- diff --git a/bin/mozilla/ustva.pl b/bin/mozilla/ustva.pl index d7ef9caeb..212c3815c 100644 --- a/bin/mozilla/ustva.pl +++ b/bin/mozilla/ustva.pl @@ -121,19 +121,14 @@ sub report { # klären, ob $form->{company_street|_address} gesetzt sind if ($form->{address} ne '') { my $temp = $form->{address}; - $temp =~ s/\\n/
/; + $temp =~ s/\n/
/; ($form->{co_street}, $form->{co_city}) = split("
", $temp); - $form->{co_city} =~ s/\\n//g; + $form->{co_city} =~ s/\n//g; } my $address_given = - ($form->{co_street} ne '' - and ( - $form->{co_zip} ne '' - or $form->{co_city} ne '' - ) - ) + ($form->{co_street} && ($form->{co_zip} || $form->{co_city})) ? qq|$form->{co_street}
| . qq|$form->{co_street1}
| . qq|$form->{co_zip} $form->{co_city}|