From c45d7eedae611fa7e35d3a8225691fe766e35acb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Thu, 13 Feb 2020 18:07:49 +0100 Subject: [PATCH] Angebot / Auftrag (alte Masken) / Lieferschein: nur Mailen, wenn gespeichert Behebt #418 (redmine). --- bin/mozilla/do.pl | 1 + bin/mozilla/oe.pl | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) 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'), -- 2.20.1