From 54451a50c048a22fa02bb7862424a4a5a38983fd Mon Sep 17 00:00:00 2001 From: Thomas Kasulke Date: Wed, 4 Apr 2007 11:57:40 +0000 Subject: [PATCH] =?utf8?q?Ersatzmuster=20f=C3=BCr=20Lieferanten/Kundenname?= =?utf8?q?n,=20welche=20\n=20und/oder=20\r=20enthalten,=20hizugef=C3=BCgt?= =?utf8?q?=20(bug=20543)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- bin/mozilla/is.pl | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/bin/mozilla/is.pl b/bin/mozilla/is.pl index 852914e24..ce9e76081 100644 --- a/bin/mozilla/is.pl +++ b/bin/mozilla/is.pl @@ -172,13 +172,13 @@ sub invoice_links { chomp $curr[0]; $form->{defaultcurrency} = $curr[0]; - map { $form->{selectcurrency} .= "\n" } @curr; $form->{oldcustomer} = "$form->{customer}--$form->{customer_id}"; if (@{ $form->{all_customer} }) { $form->{customer} = "$form->{customer}--$form->{customer_id}"; - map { $form->{selectcustomer} .= "\n" } (@{ $form->{all_customer} }); } @@ -189,7 +189,7 @@ sub invoice_links { map { $form->{selectdepartment} .= - "\n" } (@{ $form->{all_departments} }); } @@ -198,7 +198,7 @@ sub invoice_links { # sales staff if ($form->{all_employees}) { $form->{selectemployee} = ""; - map { $form->{selectemployee} .= "\n" } (@{ $form->{all_employees} }); } @@ -208,7 +208,8 @@ sub invoice_links { foreach $key (keys %{ $form->{AR_links} }) { foreach $ref (@{ $form->{AR_links}{$key} }) { - $form->{"select$key"} .= "\n"; } if ($key eq "AR_paid") { @@ -433,6 +434,9 @@ sub form_header { #quote customer Bug 133 $form->{selectcustomer} = $form->quote($form->{selectcustomer}); + + #substitute \n and \r to \s (bug 543) + $form->{selectcustomer} =~ s/[\n\r]/ /g; if (($form->{creditlimit} != 0) && ($form->{creditremaining} < 0) && !$form->{update}) { $creditwarning = 1; -- 2.20.1