From 15aab04c1710b3c8a2bf8785aef31f13a958a43e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Wed, 20 Apr 2022 15:22:42 +0200 Subject: [PATCH] neuen Artikel aus Angebots-/Auftrags-Maske anlegen: Variable besser benannt --- SL/Controller/DeliveryOrder.pm | 10 +++++----- SL/Controller/Order.pm | 10 +++++----- SL/Controller/Part.pm | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) 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 => [ -- 2.20.1