Revision db151e5a
Von Tamino Steinert vor etwa 1 Jahr hinzugefügt
SL/Controller/DeliveryOrder.pm | ||
---|---|---|
240 | 240 |
my $saved_order = SL::DB::DeliveryOrder->new(id => $order->id)->load; |
241 | 241 |
|
242 | 242 |
# Create new record from current one |
243 |
my $updated_order = SL::Model::Record->update_for_save_as_new($saved_order, $order); |
|
244 |
|
|
245 |
$self->order($updated_order); |
|
243 |
my $new_order = SL::Model::Record->clone_for_save_as_new($saved_order, $order); |
|
244 |
$self->order($new_order); |
|
246 | 245 |
|
247 | 246 |
# no linked records on save as new |
248 | 247 |
delete $::form->{$_} for qw(converted_from_oe_id converted_from_orderitems_ids); |
Auch abrufbar als: Unified diff
Model::Record: umbenennen von update_... zu clone_for_save_as_new