From: Bernd Bleßmann Date: Fri, 23 Feb 2018 14:28:47 +0000 (+0100) Subject: Auftrags-Controller: Workflow Angebot->Auftrag nur, wenn gespeichert X-Git-Tag: release-3.5.4~452 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=ccbd0240ff944d1fd484c8744349e052df1613fe;p=kivitendo-erp.git Auftrags-Controller: Workflow Angebot->Auftrag nur, wenn gespeichert --- diff --git a/SL/Controller/Order.pm b/SL/Controller/Order.pm index 8ee73f9c8..b87049a0a 100644 --- a/SL/Controller/Order.pm +++ b/SL/Controller/Order.pm @@ -1423,13 +1423,15 @@ sub _setup_edit_action_bar { ], action => [ t8('Sales Order'), - submit => [ '#order_form', { action => "Order/sales_order" } ], - only_if => (any { $self->type eq $_ } (_sales_quotation_type())), + submit => [ '#order_form', { action => "Order/sales_order" } ], + only_if => (any { $self->type eq $_ } (_sales_quotation_type())), + disabled => !$self->order->id ? t8('This object has not been saved yet.') : undef, ], action => [ t8('Purchase Order'), - submit => [ '#order_form', { action => "Order/purchase_order" } ], - only_if => (any { $self->type eq $_ } (_request_quotation_type())), + submit => [ '#order_form', { action => "Order/purchase_order" } ], + only_if => (any { $self->type eq $_ } (_request_quotation_type())), + disabled => !$self->order->id ? t8('This object has not been saved yet.') : undef, ], ], # end of combobox "Workflow"