Bug 1506: E-Mail an Ansprechpartner statt Firmenadresse
authorLars Kruse <devel@sumpfralle.de>
Wed, 29 Dec 2010 10:42:35 +0000 (11:42 +0100)
committerG. Richardson <information@lx-office-hosting.de>
Wed, 29 Dec 2010 10:42:35 +0000 (11:42 +0100)
wenn Ansprechpartner ausgewählt wurde

bin/mozilla/io.pl

index b50fe4e..6377fa6 100644 (file)
@@ -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();