From: Bernd Bleßmann Date: Wed, 20 Apr 2022 13:22:42 +0000 (+0200) Subject: neuen Artikel aus Angebots-/Auftrags-Maske anlegen: Variable besser benannt X-Git-Tag: kivitendo-mebil_0.1-0~10^2~2^2~49 X-Git-Url: http://wagnertech.de/git?p=kivitendo-erp.git;a=commitdiff_plain;h=15aab04c1710b3c8a2bf8785aef31f13a958a43e neuen Artikel aus Angebots-/Auftrags-Maske anlegen: Variable besser benannt --- diff --git a/SL/Controller/DeliveryOrder.pm b/SL/Controller/DeliveryOrder.pm index 97bfbca3e..7c4a99bfa 100644 --- a/SL/Controller/DeliveryOrder.pm +++ b/SL/Controller/DeliveryOrder.pm @@ -861,11 +861,11 @@ sub action_create_part { flash_later('info', t8('You are adding a new part while you are editing another document. You will be redirected to your document when saving the new part or aborting this form.')); my @redirect_params = ( - controller => 'Part', - action => 'add', - part_type => $::form->{add_item}->{create_part_type}, - callback => $callback, - show_abort => 1, + controller => 'Part', + action => 'add', + part_type => $::form->{add_item}->{create_part_type}, + callback => $callback, + inline_create => 1, ); $self->redirect_to(@redirect_params); diff --git a/SL/Controller/Order.pm b/SL/Controller/Order.pm index e5313124d..9454a1e13 100644 --- a/SL/Controller/Order.pm +++ b/SL/Controller/Order.pm @@ -1165,11 +1165,11 @@ sub action_create_part { flash_later('info', t8('You are adding a new part while you are editing another document. You will be redirected to your document when saving the new part or aborting this form.')); my @redirect_params = ( - controller => 'Part', - action => 'add', - part_type => $::form->{add_item}->{create_part_type}, - callback => $callback, - show_abort => 1, + controller => 'Part', + action => 'add', + part_type => $::form->{add_item}->{create_part_type}, + callback => $callback, + inline_create => 1, ); $self->redirect_to(@redirect_params); diff --git a/SL/Controller/Part.pm b/SL/Controller/Part.pm index d2638fb7e..b15b0ad47 100644 --- a/SL/Controller/Part.pm +++ b/SL/Controller/Part.pm @@ -1349,7 +1349,7 @@ sub _setup_form_action_bar { action => [ t8('Abort'), submit => [ '#ic', { action => "Part/abort" } ], - only_if => !!$::form->{show_abort}, + only_if => !!$::form->{inline_create}, ], action => [