[BUGFIX] Add textmedia CE's bodytext to BE search 64/48464/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:29:07 +0000 (18:29 +0200)
Resolves: #76466
Releases: master, 7.6
Change-Id: Ib54d9c1434e2de8f783180a1c4789cac702afd73
Reviewed-on: https://review.typo3.org/48464
Reviewed-by: Frank Naegler <frank.naegler@typo3.org>
Tested-by: Frank Naegler <frank.naegler@typo3.org>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/fluid_styled_content/Configuration/TCA/Overrides/tt_content.php

index 5e1faa2..e6e31d3 100644 (file)
@@ -55,6 +55,8 @@ call_user_func(function () {
         'columnsOverrides' => ['bodytext' => ['defaultExtras' => 'richtext:rte_transform[mode=ts_css]']]
     ];
 
         'columnsOverrides' => ['bodytext' => ['defaultExtras' => 'richtext:rte_transform[mode=ts_css]']]
     ];
 
+    $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'] .=
     // Add category tab when categories column exits
     if (!empty($GLOBALS['TCA']['tt_content']['columns']['categories'])) {
         $GLOBALS['TCA']['tt_content']['types']['textmedia']['showitem'] .=