Skip to content

Commit ffb23fc

Browse files
committed
[BUGFIX] Remove application of extendBodytextSearchAndWhere in TYPO3 version 13.4.5 and onwards.
Fixes #669 Related: https://review.typo3.org/c/Packages/TYPO3.CMS/+/85489
1 parent ce5cd5b commit ffb23fc

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Configuration/TCA/Overrides/tt_content.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,9 @@
2121
$tcaCodeGenerator->setInlineTca();
2222
$tcaCodeGenerator->setElementsTca();
2323
$GLOBALS['TCA']['tt_content']['ctrl']['searchFields'] = $tcaCodeGenerator->addSearchFields('tt_content');
24-
$GLOBALS['TCA']['tt_content']['columns']['bodytext']['config']['search']['andWhere'] .= $tcaCodeGenerator->extendBodytextSearchAndWhere();
24+
$versionString = \TYPO3\CMS\Core\Utility\VersionNumberUtility::getNumericTypo3Version();
25+
if (\TYPO3\CMS\Core\Utility\VersionNumberUtility::convertVersionNumberToInteger($versionString) < 13004005) {
26+
// no longer needed in TYPO3 13.4.5 and later
27+
// https://review.typo3.org/c/Packages/TYPO3.CMS/+/85489
28+
$GLOBALS['TCA']['tt_content']['columns']['bodytext']['config']['search']['andWhere'] .= $tcaCodeGenerator->extendBodytextSearchAndWhere();
29+
}

0 commit comments

Comments
 (0)