Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[BUGFIX] fix crawling of mount pages #1134

Merged
merged 2 commits into from
Feb 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
### Fixed
* Ensure that correct typo3 binary is returned in non-composer installations
* Adjust path in cli/bootstrap.php to match new folder structure of where extensions are installed
* Fix crawling of mount pages

### Deprecated
#### Classes
Expand Down
8 changes: 4 additions & 4 deletions Classes/Controller/CrawlerController.php
Original file line number Diff line number Diff line change
Expand Up @@ -705,11 +705,11 @@ public function getPageTreeAndUrls(
$mountpage = $this->pageRepository->getPage($data['row']['uid']);

// fetch mounted pages
$this->MP = $mountpage[0]['mount_pid'] . '-' . $data['row']['uid'];
$this->MP = $mountpage['mount_pid'] . '-' . $data['row']['uid'];

$mountTree = GeneralUtility::makeInstance(PageTreeView::class);
$mountTree->init(empty($perms_clause) ? '' : ('AND ' . $perms_clause));
$mountTree->getTree($mountpage[0]['mount_pid'], $depth);
$mountTree->getTree($mountpage['mount_pid'], $depth);

foreach ($mountTree->tree as $mountData) {
$queueRows = array_merge($queueRows, $this->drawURLs_addRowsForPage(
Expand All @@ -720,8 +720,8 @@ public function getPageTreeAndUrls(
}

// replace page when mount_pid_ol is enabled
if ($mountpage[0]['mount_pid_ol']) {
$data['row']['uid'] = $mountpage[0]['mount_pid'];
if ($mountpage['mount_pid_ol']) {
$data['row']['uid'] = $mountpage['mount_pid'];
} else {
// if the mount_pid_ol is not set the MP must not be used for the mountpoint page
$this->MP = null;
Expand Down
Loading