From: Jan Büren Date: Tue, 12 Jun 2018 11:34:24 +0000 (+0200) Subject: SelfTest false positive vermeiden X-Git-Tag: release-3.5.4~393 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=2d15e56a83d0f8607240839e0563e37997815052;p=kivitendo-erp.git SelfTest false positive vermeiden Der #b4cc349b ist leider auch Schrott. Im Array hab ich nur failed mit 0 oder 1 als zuverlässige Status-Meldung --- diff --git a/SL/BackgroundJob/SelfTest.pm b/SL/BackgroundJob/SelfTest.pm index d4465721f..bb624673b 100644 --- a/SL/BackgroundJob/SelfTest.pm +++ b/SL/BackgroundJob/SelfTest.pm @@ -65,7 +65,7 @@ sub run { ); # if (!$self->aggreg->all_passed || $self->config->{send_email_on_success}) { # all_passed is not set or calculated (anymore). it is safe to check only for probs or errors - if ($self->aggreg->has_problems || $self->aggreg->has_errors || $self->config->{send_email_on_success}) { + if ($self->aggreg->failed || $self->config->{send_email_on_success}) { $self->_send_email; }