X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/2394dc67bf4994673afcec18ea3c2e1aaed787f5..90a1b6fad6aeeab84fc96d6511fdf42fff315df5:/SL/Controller/BackgroundJob.pm diff --git a/SL/Controller/BackgroundJob.pm b/SL/Controller/BackgroundJob.pm index 1e73e1e29..7e16a1772 100644 --- a/SL/Controller/BackgroundJob.pm +++ b/SL/Controller/BackgroundJob.pm @@ -55,7 +55,8 @@ sub action_edit { sub action_edit_as_new { my ($self) = @_; - $self->background_job($self->background_job->clone_and_reset); + delete $::form->{background_job}->{id}; + $self->background_job(SL::DB::BackgroundJob->new(%{ $::form->{background_job} })); $self->action_new; }