Issue Bug Closed

#17214[4.1.1] Foreign values are not always resolved in list view

Michael Knabe 04/17/07, 16:42 updated 07/02/10, 11:18

Description

If you have a table, containing a field from a foreign table and this field be the label, it’s not resolved in the list view. Instead of the value, the UID is shown. As soon as you use another field as the label, the resolving works fine. And if you edit an entry the right value is shown too
In 4.0 it worked. But not in 4.1.1. I’m not sure about 4.1

tca.php:

$TCA[“tx_foreign_user”] = Array (
…
“foreign_field” => Array (
…
“config” => Array (
“type” => “select”,
“foreign_table” => “tx_foreign_table”,
…
)
),
…
);
$TCA[“tx_foreign_table”] = Array (
…
“content” => Array (
…
“config” => Array (
“type” => “input”,
…
)
),
…
);

ext_tables.php:
$TCA[“tx_foreign_user”] = Array (
“ctrl” => Array (
…
//If you leave this out or change to another field name
//foreign_field will be resolved fine
‘label’ => ‘foreign_field’,
…
),
…
);
$TCA[“tx_foreign_table”] = Array (
“ctrl” => Array (
…
‘label’ => ‘content’,
…
),
…
);
…
(issue imported from #M5441)

Reviews 0

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