Revision 6e7e7ef1
Von Tamino Steinert vor mehr als 1 Jahr hinzugefügt
SL/Controller/Reclamation.pm | ||
---|---|---|
my $saved_reclamation = SL::DB::Reclamation->new(id => $reclamation->id)->load;
|
||
|
||
# Create new record from current one
|
||
my $new_reclamation = SL::Model::Record->update_for_save_as_new($saved_reclamation, $reclamation);
|
||
my $new_reclamation = SL::Model::Record->clone_for_save_as_new($saved_reclamation, $reclamation);
|
||
$self->reclamation($new_reclamation);
|
||
|
||
if (!$::form->{form_validity_token}) {
|
Auch abrufbar als: Unified diff
Model::Record: umbenennen von update_... zu clone_for_save_as_new