projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf056a3
)
Order-Controller: Knopf f. E-Mail-Aktion nach "Speichern und drucken" freigeben
author
Bernd Bleßmann
<bernd@kivitendo-premium.de>
Thu, 18 Feb 2021 07:35:45 +0000
(08:35 +0100)
committer
Bernd Bleßmann
<bernd@kivitendo-premium.de>
Thu, 18 Feb 2021 07:35:45 +0000
(08:35 +0100)
SL/Controller/Order.pm
patch
|
blob
|
history
diff --git
a/SL/Controller/Order.pm
b/SL/Controller/Order.pm
index
0fb8dc2
..
8d2e972
100644
(file)
--- 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,
],