#63047TreeView with non pages isInWebMount wrong parameter because of Bugfix #18797
Description
Hi,
because of the bug fix für #18797 which results in this commit:
https://git.typo3.org/Packages/TYPO3.CMS.git/commitdiff/c59d89f809898784aaedd507db61a4d380bc27a8
This part is only correct IF the records are pages, will result in problems if the records are not pages.
757 if (!$GLOBALS['BE_USER']->isInWebMount($row['uid'])) {
758 // Current record is not within web mount => skip it
759 continue;
760 }
Which means we have to modify it to something like this:
class ... {
....
public $fieldArray = array('uid', 'pid', 'title');
....
}
getTree Method:
$pageUid = ($this->table === 'pages') ?> $row['uid'] : $row['pid'];
757 if (!$GLOBALS['BE_USER']->isInWebMount(pageUid)) {
758 // Current record is not within web mount => skip it
759 continue;
760 }