From: Bernd Bleßmann Date: Fri, 12 Nov 2021 10:59:20 +0000 (+0100) Subject: Kosmetik X-Git-Tag: kivitendo-mebil_0.1-0~10^2~2^2~299 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=26993da686d851ccaa5201ae6b42eee50166b448;p=kivitendo-erp.git Kosmetik --- diff --git a/SL/Controller/Order.pm b/SL/Controller/Order.pm index 4cf9f614a..c19eed6c4 100644 --- a/SL/Controller/Order.pm +++ b/SL/Controller/Order.pm @@ -425,12 +425,13 @@ sub action_save_and_show_email_dialog { $email_form->{js_send_function} = 'kivi.Order.send_email()'; my %files = $self->get_files_for_email_dialog(); + $self->{all_employees} = SL::DB::Manager::Employee->get_all(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'), - FILES => \%files, - is_customer => $self->cv eq 'customer', + email_form => $email_form, + show_bcc => $::auth->assert('email_bcc', 'may fail'), + FILES => \%files, + is_customer => $self->cv eq 'customer', ALL_EMPLOYEES => $self->{all_employees}, ); diff --git a/bin/mozilla/io.pl b/bin/mozilla/io.pl index 89e40d0e5..6d1572b15 100644 --- a/bin/mozilla/io.pl +++ b/bin/mozilla/io.pl @@ -2114,6 +2114,7 @@ sub show_sales_purchase_email_dialog { } $::form->{all_employees} = SL::DB::Manager::Employee->get_all(query => [ deleted => 0 ]); + my $email_form = { to => $email, cc => $email_cc, @@ -2125,10 +2126,10 @@ sub show_sales_purchase_email_dialog { my %files = _get_files_for_email_dialog(); my $html = $::form->parse_html_template("common/_send_email_dialog", { - email_form => $email_form, - show_bcc => $::auth->assert('email_bcc', 'may fail'), - FILES => \%files, - is_customer => $::form->{vc} eq 'customer', + email_form => $email_form, + show_bcc => $::auth->assert('email_bcc', 'may fail'), + FILES => \%files, + is_customer => $::form->{vc} eq 'customer', is_invoice_mail => ($record_email && $::form->{type} eq 'invoice'), ALL_EMPLOYEES => $::form->{all_employees}, }); diff --git a/templates/webpages/common/_send_email_dialog.html b/templates/webpages/common/_send_email_dialog.html index 79b984c81..e626c3510 100644 --- a/templates/webpages/common/_send_email_dialog.html +++ b/templates/webpages/common/_send_email_dialog.html @@ -43,7 +43,7 @@ [%- IF ALL_EMPLOYEES.size %] [% LxERP.t8("CC to Employee") %] - [% L.select_tag('email_form.cc_employee', ALL_EMPLOYEES, value_key='login' title_key='safe_name', with_empty=1, style=style) %] + [% L.select_tag('email_form.cc_employee', ALL_EMPLOYEES, value_key='login' title_key='safe_name', with_empty=1, style=style) %] [%- END %]