[BUGFIX] Add textmedia CE's bodytext to BE search 59/48459/2
authorMarkus Klein <markus.klein@typo3.org>
Mon, 6 Jun 2016 12:59:07 +0000 (14:59 +0200)
committerFrank Naegler <frank.naegler@typo3.org>
Mon, 6 Jun 2016 16:24:59 +0000 (18:24 +0200)
Resolves: #76466
Releases: master, 7.6
Change-Id: Ib54d9c1434e2de8f783180a1c4789cac702afd73
Reviewed-on: https://review.typo3.org/48459
Tested-by: Gianluigi Martino <gmartino27@gmail.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Frank Naegler <frank.naegler@typo3.org>
Tested-by: Frank Naegler <frank.naegler@typo3.org>
typo3/sysext/fluid_styled_content/Configuration/TCA/Overrides/tt_content.php

index 63fcce0..481a4c8 100644 (file)
@@ -55,6 +55,8 @@ call_user_func(function () {
         'columnsOverrides' => ['bodytext' => ['defaultExtras' => 'richtext:rte_transform']]
     ];
 
+    $GLOBALS['TCA']['tt_content']['columns']['bodytext']['config']['search']['andWhere'] .= ' OR CType=\'textmedia\'';
+
     // Add category tab when categories column exits
     if (!empty($GLOBALS['TCA']['tt_content']['columns']['categories'])) {
         $GLOBALS['TCA']['tt_content']['types']['textmedia']['showitem'] .=