Skip to content

Commit

Permalink
Backport of #1009 (#1089)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hawkeye1909 authored Aug 21, 2024
1 parent 3b2c544 commit 727a540
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
# Changelog TYPO3 Crawler

## Crawler 11.0.11-dev

### Added

### Changed

### Fixed
* Fixed query building when using _ADDTABLE parameter [@hawkeye1909](https://github.com/hawkeye1909)

### Deprecated

#### Classes

#### Functions & Properties

### Removed

#### Classes

#### Functions & Properties

## Crawler 11.0.10

Crawler 11.0.10 was released on July 4th, 2024
Expand Down
5 changes: 4 additions & 1 deletion Classes/Service/ConfigurationService.php
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,10 @@ private function expandParameters(array $paramArray, int $pid): array

if (! empty($addTable)) {
// TODO: Check if this works as intended!
$queryBuilder->add('from', $addTable);
$addTables = GeneralUtility::trimExplode(',', $addTable, true);
foreach ($addTables as $table) {
$queryBuilder->from($table);
}
}
$transOrigPointerField = $GLOBALS['TCA'][$subpartParams['_TABLE']]['ctrl']['transOrigPointerField'];

Expand Down

0 comments on commit 727a540

Please sign in to comment.