From 98d5d542e52b9c4b01a3c1f98ffa91a3df0b8f81 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20B=C3=BCren?= Date: Tue, 22 Sep 2020 09:14:26 +0200 Subject: [PATCH] =?utf8?q?Order-Controller=20E-Mail=20nur=20nach=20Speiche?= =?utf8?q?rn=20m=C3=B6glich?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Hotfix um einen wirklich gesicherte $::form zu haben --- SL/Controller/Order.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/SL/Controller/Order.pm b/SL/Controller/Order.pm index 12b9bae64..f3eed7c38 100644 --- a/SL/Controller/Order.pm +++ b/SL/Controller/Order.pm @@ -1885,6 +1885,7 @@ sub setup_edit_action_bar { action => [ t8('Save and E-mail'), 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, ], action => [ t8('Download attachments of all parts'), -- 2.20.1