[BUGFIX] RespectStoragePage does not respect rootLevel
authorStefan Frömken <sfroemken@jweiland.net>
Thu, 21 Feb 2013 15:41:48 +0000 (16:41 +0100)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Fri, 12 Apr 2013 11:39:42 +0000 (13:39 +0200)
commit7e2466140a6cbb4415b46812969bd4698583388e
treeada988aca9f6068b593baf916655fe66604a945f
parentf876036b7660d801705c6465a37589b1fbc0cf3d
[BUGFIX] RespectStoragePage does not respect rootLevel

AdditionalWhereClause pid statement for set rootLevel=-1 will be empty,
and for rootLevel = 1 it will limit the query to pid = 0.
For not set rootLevel or rootLevel = 0 the given Pids are taken into
account.

Fixes: #45715
Releases: 6.1
Change-Id: I5f4cdc23273fef186d620e2596a0e3e1eab313ce
Reviewed-on: https://review.typo3.org/18425
Reviewed-by: Frans Saris
Tested-by: Frans Saris
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
typo3/sysext/extbase/Classes/Persistence/Generic/Storage/Typo3DbBackend.php
typo3/sysext/extbase/Tests/Unit/Persistence/Generic/Storage/Typo3DbBackendTest.php