Issue Bug Closed

#24191tcaTree does not work for relation fields without TCA Definition.

Georg Ringer 11/24/10, 14:56 updated 03/29/11, 23:44

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)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.