Skip to content

Commit

Permalink
Merge pull request #670 from nitori/main
Browse files Browse the repository at this point in the history
[BUGFIX] Remove application of extendBodytextSearchAndWhere in TYPO3 version 13.4.5 and onwards.
  • Loading branch information
nhovratov authored Feb 12, 2025
2 parents ce5cd5b + ffb23fc commit ae4798b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Configuration/TCA/Overrides/tt_content.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,9 @@
$tcaCodeGenerator->setInlineTca();
$tcaCodeGenerator->setElementsTca();
$GLOBALS['TCA']['tt_content']['ctrl']['searchFields'] = $tcaCodeGenerator->addSearchFields('tt_content');
$GLOBALS['TCA']['tt_content']['columns']['bodytext']['config']['search']['andWhere'] .= $tcaCodeGenerator->extendBodytextSearchAndWhere();
$versionString = \TYPO3\CMS\Core\Utility\VersionNumberUtility::getNumericTypo3Version();
if (\TYPO3\CMS\Core\Utility\VersionNumberUtility::convertVersionNumberToInteger($versionString) < 13004005) {
// no longer needed in TYPO3 13.4.5 and later
// https://review.typo3.org/c/Packages/TYPO3.CMS/+/85489
$GLOBALS['TCA']['tt_content']['columns']['bodytext']['config']['search']['andWhere'] .= $tcaCodeGenerator->extendBodytextSearchAndWhere();
}

0 comments on commit ae4798b

Please sign in to comment.