[BUGFIX] Display relations' titles when TCA label field is type inline 02/23902/4
authorClaus Due <claus@namelesscoder.net>
Thu, 19 Sep 2013 11:34:09 +0000 (13:34 +0200)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Thu, 19 Sep 2013 12:45:06 +0000 (14:45 +0200)
This change adds a case to treat "inline" TCA types the same way
"select" is treated when building the record's label value.

Before, if record used field of type "inline" as TCA label field, TYPO3
would display fx "3" (number of related records as stored in field
on parent record).

After, TYPO3 will display fx "Record1, Record2, Record2" if "inline"
field contains three related records named thusly.

Fixes: #52133
Releases: 6.2, 6.1, 6.0, 4.7, 4.5
Change-Id: Ie06f09368e81505cb1e5989b61ae98add54b05ba
Reviewed-on: https://review.typo3.org/23902
Reviewed-by: Benjamin Rau
Tested-by: Benjamin Rau
Reviewed-by: Stefan Froemken
Tested-by: Stefan Froemken
Reviewed-by: Cedric Ziel
Tested-by: Cedric Ziel
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
typo3/sysext/backend/Classes/Utility/BackendUtility.php

index fa92b5e..3da9edc 100644 (file)
@@ -2017,6 +2017,7 @@ class BackendUtility {
                                        $l = self::getLabelFromItemlist($table, $col, $value);
                                        $l = $GLOBALS['LANG']->sL($l);
                                        break;
+                               case 'inline':
                                case 'select':
                                        if ($theColConf['MM']) {
                                                if ($uid) {