contao/core — pull request #5071 by DyaGa (2012-11-28 16:20:53+00:00)
Title: Use ForeignKey DCA field property in listView

For now `foreignKey` DCA property doesn't use in listView.

How to reproduce this bug in demo.

1 Edit `core/dca/tl_member.php` file and add `groups` column to `[label][fields]` as:

```php
'label' => array
(
'fields' => array('icon', 'firstname', 'lastname', 'username', 'groups', 'dateAdded'),
...
```

2 Go to Backend *Members* page and you will see added field `groups` as *Member groups* column but with values like `2`. But if you will look into *Show the details of member ID 1* you will see that *Member groups* field has value `Piano Students`. This value came from `tl_member_group` because field `groups` has DCA property `'foreignKey' => 'tl_member_group.name'`.

The same value `Piano Students` expected to see in *Member groups* column, but it shows only it's id values.

So, this pull request will use that `foreignKey` property for showing wright values in listView.