From e4e46bf6a2e8b8d11106b264d0f181a37763a472 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 14 Apr 2015 10:34:20 +0200 Subject: [PATCH] =?utf8?q?SL::DB::BackgroundJob::data=5Fas=5Fhash=20auch?= =?utf8?q?=20als=20Writer=20benutzen=20k=C3=B6nnen?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/DB/BackgroundJob.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/SL/DB/BackgroundJob.pm b/SL/DB/BackgroundJob.pm index 2040297b1..3e6c03da5 100644 --- a/SL/DB/BackgroundJob.pm +++ b/SL/DB/BackgroundJob.pm @@ -75,6 +75,9 @@ sub run { sub data_as_hash { my $self = shift; + + $self->data(YAML::Dump($_[0])) if @_; + return {} if !$self->data; return $self->data if ref($self->{data}) eq 'HASH'; return YAML::Load($self->{data}) if !ref($self->{data}); -- 2.20.1