[BUGFIX] Do not send empty scheduler status mails 74/60174/2
authorGuido Schmechel <guido.schmechel@brandung.de>
Mon, 11 Mar 2019 23:47:13 +0000 (00:47 +0100)
committerGeorg Ringer <georg.ringer@gmail.com>
Fri, 15 Mar 2019 19:41:41 +0000 (20:41 +0100)
Due to a missing initialization, the status providers were not filled
in the status report in the scheduler task. The providers are now
initialized in the constructor and can now always be used.

Resolves: #87555
Releases: master, 9.5
Change-Id: Ia9b02b13061775ce297f6d2881ce8332c9714591
Reviewed-on: https://review.typo3.org/c/60174
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: Susanne Moog <susanne.moog@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
Reviewed-by: Susanne Moog <susanne.moog@typo3.org>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
typo3/sysext/reports/Classes/Report/Status/Status.php

index 05b014a..302eef8 100644 (file)
@@ -40,6 +40,7 @@ class Status implements RequestAwareReportInterface
     public function __construct()
     {
         $this->getLanguageService()->includeLLFile('EXT:reports/Resources/Private/Language/locallang_reports.xlf');
+        $this->getStatusProviders();
     }
 
     /**
@@ -50,8 +51,6 @@ class Status implements RequestAwareReportInterface
      */
     public function getReport(ServerRequestInterface $request = null)
     {
-        $this->getStatusProviders();
-
         $content = '';
         $status = $this->getSystemStatus($request);
         $highestSeverity = $this->getHighestSeverity($status);