X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FController%2FBackgroundJob.pm;h=7e16a1772a2753168d70cab732c308042e9fe04e;hb=1cbc459da604c31d21593df298a522e6cbe69e2b;hp=1e73e1e2935e5c39070a1b08c9aa32548959423b;hpb=2394dc67bf4994673afcec18ea3c2e1aaed787f5;p=kivitendo-erp.git 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; }