Project

General

Profile

Actions

Bug #63047

closed

TreeView with non pages isInWebMount wrong parameter because of Bugfix #18797

Added by Andreas Allacher about 10 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
-
Target version:
Start date:
2014-11-18
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
Stabilization Sprint

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                         }


Files

patch-63047.diff (675 Bytes) patch-63047.diff Franz Holzinger, 2014-11-19 19:03

Related issues 1 (0 open1 closed)

Blocked by TYPO3 Core - Bug #18797: "New page" wizard might disclose existence of pages outside DB mountClosedNicole Cordes2008-05-15

Actions
Actions

Also available in: Atom PDF