[BUGFIX] Fix error listing in belog 26/17726/2
authorTomita Militaru <militarutomita@gmail.com>
Sun, 9 Dec 2012 14:29:04 +0000 (16:29 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Fri, 25 Jan 2013 23:00:02 +0000 (00:00 +0100)
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-on: https://review.typo3.org/17726
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/belog/Classes/Domain/Repository/LogEntryRepository.php

index fd9f4d3..e9e2cf1 100644 (file)
@@ -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.