Bug #24191
closedtcaTree does not work for relation fields without TCA Definition.
0%
Description
the tcatree is kind of broken and doesn't deliver any records.
imagine this tca in the record tx_banner_domain_model_banner
---------------------------------------
'config' => array (
'type' => 'select',
'renderMode' => 'tree',
'subType' => 'db',
'foreign_table' => 'pages',
'size' => '5',
'treeConfig' => array(
'parentField' => 'pid'
)
)
---------------------------------------
problem inside getChildrenUidsFromParentRelation(). The call to
$columnConfiguration = $GLOBALS['TCA'][$this->getTableName()]['columns'][$this->getLookupField()]['config'];
uses the wrong table name and field name as this tries to fetch the configuration from table "pages" and field "pid" but it needs to be table "tx_banner_domain_model_ banner" and field "pages".
sorry for not delivering a patch but havent gone through the api to deliver the correct fix.
(issue imported from #M16553)
Updated by Steffen Ritter almost 14 years ago
will have a look at it, but definitely looks at the correct field, since in 16554 you proclaim the fault the other way around (looking to the local tca instead of foreign)
I mark the both as related and will try to have a deep look if i mix up the tca's
Updated by Steffen Ritter almost 14 years ago
this is not related to your line you mentioned...
it's just that the pid field has no "tca" definition and there is no "default" query type currently...
Updated by Steffen Ritter almost 14 years ago
committed attached patch to tunk rev. 9671