Index: t3lib/tceforms/class.t3lib_tceforms_suggest.php =================================================================== --- t3lib/tceforms/class.t3lib_tceforms_suggest.php (revision 6730) +++ t3lib/tceforms/class.t3lib_tceforms_suggest.php (working copy) @@ -136,7 +136,8 @@ $TSconfig = t3lib_BEfunc::getPagesTSconfig($pageId); $wizardConfig = $GLOBALS['TCA'][$table]['columns'][$field]['config']['wizards']['suggest']; - $queryTables = t3lib_div::trimExplode(',', $GLOBALS['TCA'][$table]['columns'][$field]['config']['allowed']); + $queryTables = t3lib_div::trimExplode(',', $GLOBALS['TCA'][$table]['columns'][$field]['config']['allowed'] . ',' . $GLOBALS['TCA'][$table]['columns'][$field]['config']['foreign_table'], TRUE); + $queryTables = array_unique($queryTables); $resultRows = array(); // fetch the records for each query table. A query table is a table from which records are allowed to Index: t3lib/tceforms/class.t3lib_tceforms_suggest_defaultreceiver.php =================================================================== --- t3lib/tceforms/class.t3lib_tceforms_suggest_defaultreceiver.php (revision 6730) +++ t3lib/tceforms/class.t3lib_tceforms_suggest_defaultreceiver.php (working copy) @@ -235,8 +235,9 @@ $GLOBALS['TYPO3_DB']->escapeStrForLike($searchString, $this->table).'%\''; // Search in all fields given by label or label_alt - $selectFieldsList = $GLOBALS['TCA'][$this->table]['ctrl']['label'] . ',' . $GLOBALS['TCA'][$this->table]['ctrl']['label_alt']; + $selectFieldsList = $GLOBALS['TCA'][$this->table]['ctrl']['label'] . ',' . $GLOBALS['TCA'][$this->table]['ctrl']['label_alt'] . ',' . $this->config['additionalSearchFields']; $selectFields = t3lib_div::trimExplode(',', $selectFieldsList, TRUE); + $selectFields = array_unique($selectFields); $selectParts = array(); foreach ($selectFields as $field) {