projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
22a52f8
)
Merge branch 'master' of github.com:kivitendo/kivitendo-erp
author
Bernd Bleßmann
<bernd@kivitendo-premium.de>
Tue, 14 Apr 2015 13:24:01 +0000
(15:24 +0200)
committer
Bernd Bleßmann
<bernd@kivitendo-premium.de>
Tue, 14 Apr 2015 13:24:01 +0000
(15:24 +0200)
SL/DB/BackgroundJob.pm
patch
|
blob
|
history
diff --git
a/SL/DB/BackgroundJob.pm
b/SL/DB/BackgroundJob.pm
index
2040297
..
3e6c03d
100644
(file)
--- 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});