Commit 0505503a authored by Tomita Militaru's avatar Tomita Militaru Committed by Christian Kuhn
Browse files

[BUGFIX] Fix error listing in belog

Added an array with the error codes into the query constraint when
action Errors (-1) was selected.

Fixes: #43797
Releases: 6.0, 6.1
Change-Id: Iccf5db777d1e93bcad24fc72b3eef935464d3582
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
parent 8783494e
......@@ -88,7 +88,7 @@ class LogEntryRepository extends \TYPO3\CMS\Extbase\Persistence\Repository {
if ($constraint->getAction() > 0) {
$queryConstraints[] = $query->equals('type', $constraint->getAction());
} elseif ($constraint->getAction() == -1) {
$queryConstraints[] = $query->equals('error', 0);
$queryConstraints[] = $query->in('error', array(-1,1,2,3));
// Start / endtime handling: The timestamp calculation was already done
// in the controller, since we need those calculated values in the view as well.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment