[FEATURE] TCA refactoring
authorChristian Kuhn <lolli@schwarzbu.ch>
Thu, 14 Feb 2013 13:12:23 +0000 (14:12 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 28 Feb 2013 19:04:56 +0000 (20:04 +0100)
Follow up to core patch for version submodule

Related: #45767
Releases: 6.1
Change-Id: I10ceb80ded90d19417e647ac72eff65fc8b84f14
Reviewed-on: https://review.typo3.org/18449
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/version/Classes/Controller/VersionModuleController.php
typo3/sysext/version/Classes/Hook/DataHandlerHook.php

index c1bc52b..d354aad 100644 (file)
@@ -346,7 +346,6 @@ class VersionModuleController extends \TYPO3\CMS\Backend\Module\BaseScriptClass
                                $diff_1_record = \t3lib_BEfunc::getRecord($this->table, $diff_1);
                                $diff_2_record = \t3lib_BEfunc::getRecord($this->table, $diff_2);
                                if (is_array($diff_1_record) && is_array($diff_2_record)) {
-                                       \t3lib_div::loadTCA($this->table);
                                        $t3lib_diff_Obj = \t3lib_div::makeInstance('TYPO3\\CMS\\Core\\Utility\\DiffUtility');
                                        $tRows = array();
                                        $tRows[] = '
@@ -1200,8 +1199,6 @@ class VersionModuleController extends \TYPO3\CMS\Backend\Module\BaseScriptClass
                $pctChange = 'N/A';
                // Check that records are arrays:
                if (is_array($diff_1_record) && is_array($diff_2_record)) {
-                       // Load full table description and initialize diff-object:
-                       \t3lib_div::loadTCA($table);
                        $t3lib_diff_Obj = \t3lib_div::makeInstance('TYPO3\\CMS\\Core\\Utility\\DiffUtility');
                        // Add header row:
                        $tRows = array();
index 0ec062e..74571bb 100644 (file)
@@ -1245,7 +1245,6 @@ class DataHandlerHook {
         * @return array
         */
        protected function getPossibleInlineChildTablesOfParentTable($parentTable, array $possibleInlineChildren = array()) {
-               \TYPO3\CMS\Core\Utility\GeneralUtility::loadTCA($parentTable);
                foreach ($GLOBALS['TCA'][$parentTable]['columns'] as $parentField => $parentFieldDefinition) {
                        if (isset($parentFieldDefinition['config']['type'])) {
                                $parentFieldConfiguration = $parentFieldDefinition['config'];
@@ -1278,7 +1277,6 @@ class DataHandlerHook {
         */
        protected function getUniqueFields($table) {
                $listArr = array();
-               \TYPO3\CMS\Core\Utility\GeneralUtility::loadTCA($table);
                if ($GLOBALS['TCA'][$table]['columns']) {
                        foreach ($GLOBALS['TCA'][$table]['columns'] as $field => $configArr) {
                                if ($configArr['config']['type'] === 'input') {