E-Mail-Versand: CC: kivi-Benutzer sortieren
authorBernd Bleßmann <bernd@kivitendo-premium.de>
Fri, 12 Nov 2021 11:02:59 +0000 (12:02 +0100)
committerBernd Bleßmann <bernd@kivitendo-premium.de>
Fri, 12 Nov 2021 11:20:35 +0000 (12:20 +0100)
SL/Controller/Order.pm
bin/mozilla/io.pl

index c19eed6..cdae561 100644 (file)
@@ -426,7 +426,7 @@ sub action_save_and_show_email_dialog {
 
   my %files = $self->get_files_for_email_dialog();
 
-  $self->{all_employees} = SL::DB::Manager::Employee->get_all(query => [ deleted => 0 ]);
+  $self->{all_employees} = SL::DB::Manager::Employee->get_all_sorted(query => [ deleted => 0 ]);
   my $dialog_html = $self->render('common/_send_email_dialog', { output => 0 },
                                   email_form    => $email_form,
                                   show_bcc      => $::auth->assert('email_bcc', 'may fail'),
index 6d1572b..1ce4c18 100644 (file)
@@ -2113,7 +2113,7 @@ sub show_sales_purchase_email_dialog {
     $body_params{fallback_translation_type} = "preset_text_invoice";
   }
 
-  $::form->{all_employees} = SL::DB::Manager::Employee->get_all(query => [ deleted => 0 ]);
+  $::form->{all_employees} = SL::DB::Manager::Employee->get_all_sorted(query => [ deleted => 0 ]);
 
   my $email_form = {
     to                  => $email,