From: Bernd Bleßmann Date: Fri, 12 Nov 2021 11:02:59 +0000 (+0100) Subject: E-Mail-Versand: CC: kivi-Benutzer sortieren X-Git-Tag: kivitendo-mebil_0.1-0~10^2~2^2~298 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=5155c356275075630740e00448a251df929104d8;p=kivitendo-erp.git E-Mail-Versand: CC: kivi-Benutzer sortieren --- diff --git a/SL/Controller/Order.pm b/SL/Controller/Order.pm index c19eed6c4..cdae561cd 100644 --- a/SL/Controller/Order.pm +++ b/SL/Controller/Order.pm @@ -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'), diff --git a/bin/mozilla/io.pl b/bin/mozilla/io.pl index 6d1572b15..1ce4c18a2 100644 --- a/bin/mozilla/io.pl +++ b/bin/mozilla/io.pl @@ -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,