Bug #21924 » suggest-wizard-selectFields.diff
t3lib/tceforms/class.t3lib_tceforms_suggest.php (working copy) | ||
---|---|---|
$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
|
t3lib/tceforms/class.t3lib_tceforms_suggest_defaultreceiver.php (working copy) | ||
---|---|---|
$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) {
|