Project

General

Profile

Actions

Bug #24191

closed

tcaTree does not work for relation fields without TCA Definition.

Added by Georg Ringer almost 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 #1

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

Actions #2

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...

Actions #3

Updated by Steffen Ritter almost 14 years ago

committed attached patch to tunk rev. 9671

Actions #4

Updated by Susanne Moog over 13 years ago

  • Target version deleted (4.5.0)
Actions

Also available in: Atom PDF