From: Bernd Bleßmann Date: Tue, 22 Jun 2021 09:27:27 +0000 (+0200) Subject: Part Controller: Aktion save_as_new wird nicht verwendet, sondern use_as_new X-Git-Tag: kivitendo-mebil_0.1-0~9^2~168 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=acf2e152bc180b28e459363a0793f6f998d24b5e;p=kivitendo-erp.git Part Controller: Aktion save_as_new wird nicht verwendet, sondern use_as_new --- diff --git a/SL/Controller/Part.pm b/SL/Controller/Part.pm index 70ff2f5a5..14be0ed02 100644 --- a/SL/Controller/Part.pm +++ b/SL/Controller/Part.pm @@ -125,11 +125,6 @@ sub action_save { # $self->part has been loaded, parsed and validated without errors and is ready to be saved $self->part->db->with_transaction(sub { - if ( $params{save_as_new} ) { - $self->part( $self->part->clone_and_reset_deep ); - $self->part->partnumber(undef); # will be assigned by _before_save_set_partnumber - }; - $self->part->save(cascade => 1); SL::DB::History->new( @@ -162,11 +157,6 @@ sub action_save { } } -sub action_save_as_new { - my ($self) = @_; - $self->action_save(save_as_new=>1); -} - sub action_delete { my ($self) = @_;