From: Bernd Bleßmann Date: Thu, 13 Feb 2020 17:07:49 +0000 (+0100) Subject: Angebot / Auftrag (alte Masken) / Lieferschein: nur Mailen, wenn gespeichert X-Git-Tag: release-3.5.6.1~257 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=c45d7eedae611fa7e35d3a8225691fe766e35acb;p=kivitendo-erp.git Angebot / Auftrag (alte Masken) / Lieferschein: nur Mailen, wenn gespeichert Behebt #418 (redmine). --- diff --git a/bin/mozilla/do.pl b/bin/mozilla/do.pl index fd4dd2c8e..fef0940ce 100644 --- a/bin/mozilla/do.pl +++ b/bin/mozilla/do.pl @@ -336,6 +336,7 @@ sub setup_do_action_bar { t8('E Mail'), call => [ 'kivi.SalesPurchase.show_email_dialog' ], checks => [ 'kivi.validate_form' ], + disabled => !$::form->{id} ? t8('This record has not been saved yet.') : undef, ], ], # end of combobox "Export" diff --git a/bin/mozilla/oe.pl b/bin/mozilla/oe.pl index 8c88f5337..22784d9fa 100644 --- a/bin/mozilla/oe.pl +++ b/bin/mozilla/oe.pl @@ -419,8 +419,9 @@ sub setup_oe_action_bar { ], action => [ t8('E Mail'), - call => [ 'kivi.SalesPurchase.show_email_dialog' ], - checks => [ 'kivi.validate_form' ], + call => [ 'kivi.SalesPurchase.show_email_dialog' ], + checks => [ 'kivi.validate_form' ], + disabled => !$form->{id} ? t8('This record has not been saved yet.') : undef, ], action => [ t8('Download attachments of all parts'),