From: Bernd Bleßmann Date: Thu, 18 Feb 2021 07:35:45 +0000 (+0100) Subject: Order-Controller: Knopf f. E-Mail-Aktion nach "Speichern und drucken" freigeben X-Git-Tag: kivitendo-mebil_0.1-0~9^2~474 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=cce0311c1dfbe57e0fbd6082284d8360a9c54239;p=kivitendo-erp.git Order-Controller: Knopf f. E-Mail-Aktion nach "Speichern und drucken" freigeben --- diff --git a/SL/Controller/Order.pm b/SL/Controller/Order.pm index 0fb8dc2ee..8d2e972c1 100644 --- a/SL/Controller/Order.pm +++ b/SL/Controller/Order.pm @@ -350,7 +350,9 @@ sub action_print { $self->save_history('PRINTED'); - $self->js->render; + $self->js + ->run('kivi.ActionBar.setEnabled', '#save_and_email_action') + ->render; } # open the email dialog @@ -1861,6 +1863,7 @@ sub setup_edit_action_bar { ], action => [ t8('Save and E-mail'), + id => 'save_and_email_action', call => [ 'kivi.Order.save', 'save_and_show_email_dialog', $::instance_conf->get_order_warn_duplicate_parts ], disabled => !$self->order->id ? t8('This object has not been saved yet.') : undef, ],