[BUGFIX] Live search does not find all tables
authorFrancois Suter <francois@typo3.org>
Fri, 11 Nov 2011 15:07:29 +0000 (16:07 +0100)
committerFrancois Suter <francois@typo3.org>
Wed, 16 Nov 2011 09:56:49 +0000 (10:56 +0100)
To find anything in a given table, the live search loops on all that
table's columns. However it forgets to load the full TCA beforehand
and thus fails to find anything in tables for which it is not
fully loaded yet.

Change-Id: Ief94a26d5ba9ead77930835e61ebae3b01980368
Fixes: #31760
Releases: 4.5
Reviewed-on: http://review.typo3.org/6631
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
Reviewed-by: Francois Suter
Tested-by: Francois Suter
t3lib/search/class.t3lib_search_livesearch.php

index 91127b2..b7e0847 100644 (file)
@@ -392,6 +392,7 @@ class t3lib_search_livesearch {
         */
        protected function extractSearchableFieldsFromTable($tableName) {
                $fieldListArray = array();
+               t3lib_div::loadTCA($tableName);
 
                        // Traverse configured columns and add them to field array, if available for user.
                foreach ((array) $GLOBALS['TCA'][$tableName]['columns'] as $fieldName => $fieldValue) {