[BUGFIX] Use correct check to find site root pages 56/51756/3
authorGeorg Ringer <georg.ringer@gmail.com>
Sun, 19 Feb 2017 17:47:45 +0000 (18:47 +0100)
committerSascha Egerer <sascha@sascha-egerer.de>
Sun, 19 Feb 2017 20:29:28 +0000 (21:29 +0100)
commit10e0a7cf5889ae564a788e62a59c5e5dad69743b
treedc54b1606ced778bd7e7e8121e8f91ecb1c3fc2d
parentc794fa27517bb9159cffedb9bd025ac48d5c2d49
[BUGFIX] Use correct check to find site root pages

The change #79857 introduced a wrong check to find the
site root pages. Instead of checking pid == 0, the field
is_siteroot must be used.

Resolves: #79897
Releases: master
Change-Id: Ibfff703fc9506505f860c051f65dc3d31083eb1e
Reviewed-on: https://review.typo3.org/51756
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Thomas Hohn <thomas@hohn.dk>
Reviewed-by: Sascha Egerer <sascha@sascha-egerer.de>
Tested-by: Sascha Egerer <sascha@sascha-egerer.de>
Reviewed-by: Josef Glatz <josef.glatz@typo3.org>
Tested-by: Josef Glatz <josef.glatz@typo3.org>
typo3/sysext/backend/Classes/Tree/View/AbstractTreeView.php
typo3/sysext/backend/Classes/Tree/View/PageTreeView.php