From: Lars Kruse Date: Wed, 29 Dec 2010 10:42:35 +0000 (+0100) Subject: Bug 1506: E-Mail an Ansprechpartner statt Firmenadresse X-Git-Tag: release-2.6.2beta1~42^2~2^2 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=7dfa6eed24ec82c6891b75fee18993956a02a7b9;p=kivitendo-erp.git Bug 1506: E-Mail an Ansprechpartner statt Firmenadresse wenn Ansprechpartner ausgewählt wurde --- diff --git a/bin/mozilla/io.pl b/bin/mozilla/io.pl index b50fe4e14..6377fa6d9 100644 --- a/bin/mozilla/io.pl +++ b/bin/mozilla/io.pl @@ -1040,9 +1040,9 @@ sub edit_e_mail { $form->{email} = $form->{shiptoemail} if $form->{shiptoemail} && $form->{formname} =~ /(pick|packing|bin)_list/; - if ($form->{"cp_id"} && !$form->{"email"}) { + if ($form->{"cp_id"}) { CT->get_contact(\%myconfig, $form); - $form->{"email"} = $form->{"cp_email"}; + $form->{"email"} = $form->{"cp_email"} if $form->{"cp_email"}; } my $title = $locale->text('E-mail') . " " . $form->get_formname_translation();