X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fcp.pl;h=fb244b6309d418419196e813f2f83e9a71062050;hb=72de9676c87a4e842af49c4e474f4f1541029faa;hp=b9aed484aa457688a002420042950588ef3d9a16;hpb=82053b457be3de2ee5285dc13633222f4d30802c;p=kivitendo-erp.git diff --git a/bin/mozilla/cp.pl b/bin/mozilla/cp.pl index b9aed484a..fb244b630 100644 --- a/bin/mozilla/cp.pl +++ b/bin/mozilla/cp.pl @@ -72,12 +72,12 @@ sub payment { # für bugfix 1771 (doppelte Leerzeichen werden nicht 'gepostet') $form->{"select$form->{vc}"} = ""; - $form->{selectcustomer} .= "\n" if $form->{vc} eq "customer"; - if ($form->{"all_$form->{vc}"}) { + $form->{"select$form->{vc}"} .= "\n"; # s.o. jb 12.10.2010 $form->{"$form->{vc}_id"} = $form->{"all_$form->{vc}"}->[0]->{id}; - map { $form->{"select$form->{vc}"} .= "\n" } + # hotfix for 2450. TODO remove legacy code and use L + map { $form->{"select$form->{vc}"} .= "\n" } @{ $form->{"all_$form->{vc}"} }; } CP->paymentaccounts(\%myconfig, \%$form); @@ -138,7 +138,7 @@ sub form_header { # sometimes it happens that values in customer arrive without the signs '--' # but in order to select the right option field we need values with '--' - if ($form->{vc} eq "customer"){ + if ($form->{vc} eq "customer" && $form->{"all_$form->{vc}"}){ my ($customername) = split /--/, $form->{ $form->{vc} }; $form->{ $form->{vc} } = $customername . "--" . $form->{customer_id}; }