Project

General

Profile

Actions

Bug #24191

closed

tcaTree does not work for relation fields without TCA Definition.

Added by Georg Ringer about 14 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2010-11-24
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

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)


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #24192: tcatree delivers different tree with mm than withoutClosedSteffen Ritter2010-11-24

Actions
Actions

Also available in: Atom PDF