Revision 62737abf
Von Bernd Bleßmann vor mehr als 2 Jahren hinzugefügt
SL/Controller/DeliveryOrder.pm | ||
---|---|---|
861 | 861 |
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.')); |
862 | 862 |
|
863 | 863 |
my @redirect_params = ( |
864 |
controller => 'Part', |
|
865 |
action => 'add', |
|
866 |
part_type => $::form->{add_item}->{create_part_type}, |
|
867 |
callback => $callback, |
|
868 |
show_abort => 1,
|
|
864 |
controller => 'Part',
|
|
865 |
action => 'add',
|
|
866 |
part_type => $::form->{add_item}->{create_part_type},
|
|
867 |
callback => $callback,
|
|
868 |
inline_create => 1,
|
|
869 | 869 |
); |
870 | 870 |
|
871 | 871 |
$self->redirect_to(@redirect_params); |
SL/Controller/Order.pm | ||
---|---|---|
1165 | 1165 |
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.')); |
1166 | 1166 |
|
1167 | 1167 |
my @redirect_params = ( |
1168 |
controller => 'Part', |
|
1169 |
action => 'add', |
|
1170 |
part_type => $::form->{add_item}->{create_part_type}, |
|
1171 |
callback => $callback, |
|
1172 |
show_abort => 1,
|
|
1168 |
controller => 'Part',
|
|
1169 |
action => 'add',
|
|
1170 |
part_type => $::form->{add_item}->{create_part_type},
|
|
1171 |
callback => $callback,
|
|
1172 |
inline_create => 1,
|
|
1173 | 1173 |
); |
1174 | 1174 |
|
1175 | 1175 |
$self->redirect_to(@redirect_params); |
SL/Controller/Part.pm | ||
---|---|---|
1349 | 1349 |
action => [ |
1350 | 1350 |
t8('Abort'), |
1351 | 1351 |
submit => [ '#ic', { action => "Part/abort" } ], |
1352 |
only_if => !!$::form->{show_abort},
|
|
1352 |
only_if => !!$::form->{inline_create},
|
|
1353 | 1353 |
], |
1354 | 1354 |
|
1355 | 1355 |
action => [ |
Auch abrufbar als: Unified diff
neuen Artikel aus Angebots-/Auftrags-Maske anlegen: Variable besser benannt