[TASK] Remove rendering of label_userFunc due to redundancy 84/44384/2
authorJan Helke <typo3@helke.de>
Fri, 30 Oct 2015 09:22:53 +0000 (10:22 +0100)
committerMorton Jonuschat <m.jonuschat@mojocode.de>
Fri, 30 Oct 2015 09:41:14 +0000 (10:41 +0100)
Resolves: #71152
Releases: master
Change-Id: I76ef42a782d6720e97744efc65aa10799b18f952
Reviewed-on: https://review.typo3.org/44384
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: Morton Jonuschat <m.jonuschat@mojocode.de>
typo3/sysext/backend/Classes/Form/Container/InlineRecordContainer.php

index 1badb23..2d538e4 100644 (file)
@@ -330,20 +330,7 @@ class InlineRecordContainer extends AbstractContainer
 
             // Try using a normal self-defined user function
         } elseif (isset($GLOBALS['TCA'][$foreign_table]['ctrl']['label_userFunc'])) {
-            $params = array(
-                'table' => $foreign_table,
-                'row' => $rec,
-                'title' => '',
-                'isOnSymmetricSide' => $isOnSymmetricSide,
-                'parent' => array(
-                    'uid' => $parentUid,
-                    'config' => $config
-                )
-            );
-            // callUserFunction requires a third parameter, but we don't want to give $this as reference!
-            $null = null;
-            GeneralUtility::callUserFunction($GLOBALS['TCA'][$foreign_table]['ctrl']['label_userFunc'], $params, $null);
-            $recTitle = $params['title'];
+            $recTitle = $data['recordTitle'];
         } elseif ($hasForeignLabel || $hasSymmetricLabel) {
             $titleCol = $hasForeignLabel ? $config['foreign_label'] : $config['symmetric_label'];
             // Render title for everything else than group/db: