From 9445af6804f1a414d62fbca9d1b283e1dd3a6ba5 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 23 May 2017 14:54:47 +0200 Subject: [PATCH] =?utf8?q?Hintergrundjobs:=20bei=20=C2=BBals=20neu=20verwe?= =?utf8?q?nden=C2=AB=20aktuelle=20Formularwerte=20=C3=BCbernehmen?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Controller/BackgroundJob.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.20.1