From a786e4fee665f1c257b7c935694ec18f2f58efc8 Mon Sep 17 00:00:00 2001 From: Benni Mack <benni@typo3.org> Date: Tue, 23 Feb 2016 08:01:26 +0100 Subject: [PATCH] [TASK] Remove leftover FormEngine TSconfig values Several infos in TSconfig / FormEngine are never used, the field "storage_pid" does not even exist anymore in v8 (was moved to compatibility6 for v7). Resolves: #73612 Releases: master Change-Id: Iec578faa6dc591ad39eddcfbb8c6d06910e13950 Reviewed-on: https://review.typo3.org/46822 Reviewed-by: Jan Helke <typo3@helke.de> Tested-by: Jan Helke <typo3@helke.de> Reviewed-by: Andreas Wolf <andreas.wolf@typo3.org> Tested-by: Andreas Wolf <andreas.wolf@typo3.org> --- .../sysext/backend/Classes/Utility/BackendUtility.php | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/typo3/sysext/backend/Classes/Utility/BackendUtility.php b/typo3/sysext/backend/Classes/Utility/BackendUtility.php index 6df390ae548a..9ecba2acf0eb 100755 --- a/typo3/sysext/backend/Classes/Utility/BackendUtility.php +++ b/typo3/sysext/backend/Classes/Utility/BackendUtility.php @@ -3355,12 +3355,12 @@ class BackendUtility { self::fixVersioningPid($table, $row); $res = array(); - $typeVal = self::getTCAtypeValue($table, $row); // Get main config for the table list($TScID, $cPid) = self::getTSCpid($table, $row['uid'], $row['pid']); if ($TScID >= 0) { $tempConf = static::getBackendUserAuthentication()->getTSConfig('TCEFORM.' . $table, self::getPagesTSconfig($TScID)); if (is_array($tempConf['properties'])) { + $typeVal = self::getTCAtypeValue($table, $row); foreach ($tempConf['properties'] as $key => $val) { if (is_array($val)) { $fieldN = substr($key, 0, -1); @@ -3377,15 +3377,6 @@ class BackendUtility $res['_THIS_UID'] = $row['uid']; // So the row will be passed to foreign_table_where_query() $res['_THIS_ROW'] = $row; - $rootLine = self::BEgetRootLine($TScID, '', true); - foreach ($rootLine as $rC) { - if (!$res['_STORAGE_PID']) { - $res['_STORAGE_PID'] = (int)$rC['storage_pid']; - } - if (!$res['_SITEROOT']) { - $res['_SITEROOT'] = $rC['is_siteroot'] ? (int)$rC['uid'] : 0; - } - } return $res; } -- GitLab