Bug #22044 » 13402_v2.diff
t3lib/stddb/tbl_be.php (working copy) | ||
---|---|---|
'pid' => '0',
|
||
),
|
||
'script' => 'wizard_list.php',
|
||
)
|
||
),
|
||
'suggest' => array(
|
||
'type' => 'suggest',
|
||
),
|
||
)
|
||
)
|
||
),
|
t3lib/tceforms/class.t3lib_tceforms_suggest.php (working copy) | ||
---|---|---|
}
|
||
$TSconfig = t3lib_BEfunc::getPagesTSconfig($pageId);
|
||
$queryTables = array();
|
||
$foreign_table_where = '';
|
||
$wizardConfig = $GLOBALS['TCA'][$table]['columns'][$field]['config']['wizards']['suggest'];
|
||
$queryTables = t3lib_div::trimExplode(',', $GLOBALS['TCA'][$table]['columns'][$field]['config']['allowed']);
|
||
if (isset($GLOBALS['TCA'][$table]['columns'][$field]['config']['allowed'])) {
|
||
$queryTables = t3lib_div::trimExplode(',', $GLOBALS['TCA'][$table]['columns'][$field]['config']['allowed']);
|
||
} elseif (isset($GLOBALS['TCA'][$table]['columns'][$field]['config']['foreign_table'])) {
|
||
$queryTables = array($GLOBALS['TCA'][$table]['columns'][$field]['config']['foreign_table']);
|
||
$foreign_table_where = $GLOBALS['TCA'][$table]['columns'][$field]['config']['foreign_table_where'];
|
||
// strip ORDER BY clause
|
||
$foreign_table_where = trim(preg_replace('/ORDER[[:space:]]+BY.*/i', '', $foreign_table_where));
|
||
}
|
||
$resultRows = array();
|
||
// fetch the records for each query table. A query table is a table from which records are allowed to
|
||
... | ... | |
if (is_array($TSconfig['TCEFORM.'][$table.'.'][$field.'.']['suggest.'][$queryTable.'.'])) {
|
||
$config = t3lib_div::array_merge_recursive_overrule($config, $TSconfig['TCEFORM.'][$table.'.'][$field.'.']['suggest.'][$queryTable.'.']);
|
||
}
|
||
//process addWhere
|
||
if (!isset($config['addWhere']) && $foreign_table_where) {
|
||
$config['addWhere'] = $foreign_table_where;
|
||
}
|
||
if (isset($config['addWhere'])) {
|
||
$config['addWhere'] = strtr(' ' . $config['addWhere'], array(
|
||
'###THIS_UID###' => intval($uid),
|
||
'###CURRENT_PID###' => intval($pageId),
|
||
));
|
||
}
|
||
// instantiate the class that should fetch the records for this $queryTable
|
||
$receiverClassName = $config['receiverClass'];
|
||
if (!class_exists($receiverClassName)) {
|
t3lib/tceforms/class.t3lib_tceforms_suggest_defaultreceiver.php (working copy) | ||
---|---|---|
if ($GLOBALS['TCA'][$this->table]['ctrl']['versioningWS'] == true) {
|
||
$this->addWhere .= ' AND t3ver_wsid = 0';
|
||
}
|
||
if (isset($config['addWhere'])) {
|
||
$this->addWhere .= ' ' . $config['addWhere'];
|
||
}
|
||
}
|
||
/**
|
||
... | ... | |
$this->orderByStatement,
|
||
$start . ', 50');
|
||
$allRowsCount = $GLOBALS['TYPO3_DB']->sql_num_rows($res);
|
||
if ($allRowsCount) {
|
typo3/sysext/cms/ext_tables.php (working copy) | ||
---|---|---|
'exclusiveKeys' => '-1,-2',
|
||
'foreign_table' => 'fe_groups',
|
||
'foreign_table_where' => 'ORDER BY fe_groups.title',
|
||
'wizards' => array(
|
||
'suggest' => array(
|
||
'type' => 'suggest',
|
||
)
|
||
),
|
||
)
|
||
),
|
||
'extendToSubpages' => array (
|
typo3/sysext/cms/tbl_cms.php (working copy) | ||
---|---|---|
'foreign_table_where' => 'ORDER BY fe_groups.title',
|
||
'size' => '6',
|
||
'minitems' => '1',
|
||
'maxitems' => '50'
|
||
'maxitems' => '50',
|
||
'wizards' => array(
|
||
'suggest' => array(
|
||
'type' => 'suggest',
|
||
)
|
||
),
|
||
)
|
||
),
|
||
'lockToDomain' => array(
|
||
... | ... | |
'size' => 6,
|
||
'autoSizeMax' => 10,
|
||
'minitems' => 0,
|
||
'maxitems' => 20
|
||
'maxitems' => 20,
|
||
'wizards' => array(
|
||
'suggest' => array(
|
||
'type' => 'suggest',
|
||
)
|
||
),
|
||
)
|
||
),
|
||
'lockToDomain' => array(
|
- « Previous
- 1
- 2
- Next »