From: Thomas Kasulke Date: Wed, 4 Apr 2007 11:57:40 +0000 (+0000) Subject: Ersatzmuster für Lieferanten/Kundennamen, welche \n und/oder \r enthalten, hizugefügt... X-Git-Tag: release-2.4.3^2~523 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=54451a50c048a22fa02bb7862424a4a5a38983fd;p=kivitendo-erp.git Ersatzmuster für Lieferanten/Kundennamen, welche \n und/oder \r enthalten, hizugefügt (bug 543) --- 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;