Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 5a07eafc

Von Bernd Bleßmann vor mehr als 2 Jahren hinzugefügt

  • ID 5a07eafc9d215ad427e1d0e1f1682294703f45ce
  • Vorgänger fa31a7e0
  • Nachfolger 43816cb7

"alle" E-Mail-Adressen per Anhaken als Empfänger hinzufügen können

Unterschiede anzeigen:

SL/Controller/Order.pm
446 446
    $user && !!trim($user->get_config_value('email'));
447 447
  } @{ SL::DB::Manager::Employee->get_all_sorted(query => [ deleted => 0 ]) };
448 448

  
449

  
450
  my $all_partner_email_addresses = $self->order->customervendor->get_all_email_addresses();
451

  
449 452
  my $dialog_html = $self->render('common/_send_email_dialog', { output => 0 },
450 453
                                  email_form    => $email_form,
451 454
                                  show_bcc      => $::auth->assert('email_bcc', 'may fail'),
452 455
                                  FILES         => \%files,
453 456
                                  is_customer   => $self->cv eq 'customer',
454 457
                                  ALL_EMPLOYEES => \@employees_with_email,
458
                                  ALL_PARTNER_EMAIL_ADDRESSES => $all_partner_email_addresses,
455 459
  );
456 460

  
457 461
  $self->js
......
477 481
  $self->js_reset_order_and_item_ids_after_save;
478 482

  
479 483
  my $email_form  = delete $::form->{email_form};
484

  
485
  if ($email_form->{additional_to}) {
486
    $email_form->{to} = join ', ', grep { $_ } $email_form->{to}, @{$email_form->{additional_to}};
487
    delete $email_form->{additional_to};
488
  }
489

  
480 490
  my %field_names = (to => 'email');
481 491

  
482 492
  $::form->{ $field_names{$_} // $_ } = $email_form->{$_} for keys %{ $email_form };

Auch abrufbar als: Unified diff