[!!!][TASK] Remove t3ver_label database field 97/59297/6
authorBenni Mack <benni@typo3.org>
Tue, 25 Dec 2018 19:20:57 +0000 (20:20 +0100)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Wed, 9 Jan 2019 16:26:36 +0000 (17:26 +0100)
The versioning-related DB field "t3ver_label" has no special
use anymore in TYPO3 Core and Workspaces, as it was related
to static versioning and not workspace-workflows.

Resolves: #87294
Releases: master
Change-Id: I0573bc132c0151b437e557cf2c0f23c4a0d34352
Reviewed-on: https://review.typo3.org/59297
Tested-by: TYPO3com <noreply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
22 files changed:
typo3/sysext/backend/Classes/Form/FormDataProvider/InlineOverrideChildTca.php
typo3/sysext/backend/Classes/Tree/Repository/PageTreeRepository.php
typo3/sysext/core/Classes/DataHandling/DataHandler.php
typo3/sysext/core/Classes/Database/Schema/DefaultTcaSchema.php
typo3/sysext/core/Configuration/TCA/pages.php
typo3/sysext/core/Configuration/TCA/sys_category.php
typo3/sysext/core/Configuration/TCA/sys_collection.php
typo3/sysext/core/Configuration/TCA/sys_file_collection.php
typo3/sysext/core/Configuration/TCA/sys_file_metadata.php
typo3/sysext/core/Configuration/TCA/sys_file_reference.php
typo3/sysext/core/Documentation/Changelog/master/Breaking-87193-DeprecatedFunctionalityRemoved.rst
typo3/sysext/core/Resources/Private/Language/locallang_general.xlf
typo3/sysext/core/Tests/Unit/Database/Schema/DefaultTcaSchemaTest.php
typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/blog_example/Configuration/TCA/tx_blogexample_domain_model_blog.php
typo3/sysext/frontend/Configuration/TCA/pages_language_overlay.php
typo3/sysext/frontend/Configuration/TCA/sys_template.php
typo3/sysext/frontend/Configuration/TCA/tt_content.php
typo3/sysext/frontend/Tests/Functional/Fixtures/pages-title-tag.xml
typo3/sysext/frontend/Tests/Functional/Fixtures/pages.xml
typo3/sysext/frontend/Tests/Functional/Page/PageRepositoryTest.php
typo3/sysext/impexp/Tests/Functional/Fixtures/Extensions/impexp_group_files/Configuration/TCA/tx_impexpgroupfiles_item.php
typo3/sysext/workspaces/Classes/Hook/DataHandlerHook.php

index a0d68e7..a4c4bb8 100644 (file)
@@ -36,7 +36,6 @@ class InlineOverrideChildTca implements FormDataProviderInterface
         'pid',
         't3ver_oid',
         't3ver_id',
         'pid',
         't3ver_oid',
         't3ver_id',
-        't3ver_label',
         't3ver_wsid',
         't3ver_state',
         't3ver_stage',
         't3ver_wsid',
         't3ver_state',
         't3ver_stage',
index 2c5dc9f..885af6c 100644 (file)
@@ -57,7 +57,6 @@ class PageTreeRepository
         't3ver_oid',
         't3ver_id',
         't3ver_wsid',
         't3ver_oid',
         't3ver_id',
         't3ver_wsid',
-        't3ver_label',
         't3ver_state',
         't3ver_stage',
         't3ver_tstamp',
         't3ver_state',
         't3ver_stage',
         't3ver_tstamp',
index 335005e..868ce9f 100644 (file)
@@ -1218,7 +1218,6 @@ class DataHandler implements LoggerAwareInterface
                             // new record created in a workspace - so always refresh pagetree to indicate there is a change in the workspace
                             $this->pagetreeNeedsRefresh = true;
 
                             // new record created in a workspace - so always refresh pagetree to indicate there is a change in the workspace
                             $this->pagetreeNeedsRefresh = true;
 
-                            $newVersion_placeholderFieldArray['t3ver_label'] = 'INITIAL PLACEHOLDER';
                             // Setting placeholder state value for temporary record
                             $newVersion_placeholderFieldArray['t3ver_state'] = (string)new VersionState(VersionState::NEW_PLACEHOLDER);
                             // Setting workspace - only so display of place holders can filter out those from other workspaces.
                             // Setting placeholder state value for temporary record
                             $newVersion_placeholderFieldArray['t3ver_state'] = (string)new VersionState(VersionState::NEW_PLACEHOLDER);
                             // Setting workspace - only so display of place holders can filter out those from other workspaces.
@@ -1232,7 +1231,6 @@ class DataHandler implements LoggerAwareInterface
                             $fieldArray['t3ver_id'] = 1;
                             // Setting placeholder state value for version (so it can know it is currently a new version...)
                             $fieldArray['t3ver_state'] = (string)new VersionState(VersionState::NEW_PLACEHOLDER_VERSION);
                             $fieldArray['t3ver_id'] = 1;
                             // Setting placeholder state value for version (so it can know it is currently a new version...)
                             $fieldArray['t3ver_state'] = (string)new VersionState(VersionState::NEW_PLACEHOLDER_VERSION);
-                            $fieldArray['t3ver_label'] = 'First draft version';
                             $fieldArray['t3ver_wsid'] = $this->BE_USER->workspace;
                             // When inserted, $this->substNEWwithIDs[$id] will be changed to the uid of THIS version and so the interface will pick it up just nice!
                             $phShadowId = $this->insertDB($table, $id, $fieldArray, true, 0, true);
                             $fieldArray['t3ver_wsid'] = $this->BE_USER->workspace;
                             // When inserted, $this->substNEWwithIDs[$id] will be changed to the uid of THIS version and so the interface will pick it up just nice!
                             $phShadowId = $this->insertDB($table, $id, $fieldArray, true, 0, true);
@@ -1502,7 +1500,6 @@ class DataHandler implements LoggerAwareInterface
                 case 't3ver_count':
                 case 't3ver_stage':
                 case 't3ver_tstamp':
                 case 't3ver_count':
                 case 't3ver_stage':
                 case 't3ver_tstamp':
-                    // t3ver_label is not here because it CAN be edited as a regular field!
                     break;
                 case 'l10n_state':
                     $fieldArray[$field] = $fieldValue;
                     break;
                 case 'l10n_state':
                     $fieldArray[$field] = $fieldValue;
@@ -3557,7 +3554,7 @@ class DataHandler implements LoggerAwareInterface
         }
 
         $data = [];
         }
 
         $data = [];
-        $nonFields = array_unique(GeneralUtility::trimExplode(',', 'uid,perms_userid,perms_groupid,perms_user,perms_group,perms_everybody,t3ver_oid,t3ver_wsid,t3ver_id,t3ver_label,t3ver_state,t3ver_count,t3ver_stage,t3ver_tstamp,' . $excludeFields, true));
+        $nonFields = array_unique(GeneralUtility::trimExplode(',', 'uid,perms_userid,perms_groupid,perms_user,perms_group,perms_everybody,t3ver_oid,t3ver_wsid,t3ver_id,t3ver_state,t3ver_count,t3ver_stage,t3ver_tstamp,' . $excludeFields, true));
         BackendUtility::workspaceOL($table, $row, -99, false);
         $row = BackendUtility::purgeComputedPropertiesFromRecord($row);
 
         BackendUtility::workspaceOL($table, $row, -99, false);
         $row = BackendUtility::purgeComputedPropertiesFromRecord($row);
 
@@ -3880,7 +3877,7 @@ class DataHandler implements LoggerAwareInterface
         }
 
         // Set up fields which should not be processed. They are still written - just passed through no-questions-asked!
         }
 
         // Set up fields which should not be processed. They are still written - just passed through no-questions-asked!
-        $nonFields = ['uid', 'pid', 't3ver_id', 't3ver_oid', 't3ver_wsid', 't3ver_label', 't3ver_state', 't3ver_count', 't3ver_stage', 't3ver_tstamp', 'perms_userid', 'perms_groupid', 'perms_user', 'perms_group', 'perms_everybody'];
+        $nonFields = ['uid', 'pid', 't3ver_id', 't3ver_oid', 't3ver_wsid', 't3ver_state', 't3ver_count', 't3ver_stage', 't3ver_tstamp', 'perms_userid', 'perms_groupid', 'perms_user', 'perms_group', 'perms_everybody'];
 
         // Merge in override array.
         $row = array_merge($row, $overrideArray);
 
         // Merge in override array.
         $row = array_merge($row, $overrideArray);
@@ -5842,7 +5839,6 @@ class DataHandler implements LoggerAwareInterface
         $overrideArray = [
             't3ver_id' => $highestVerNumber + 1,
             't3ver_oid' => $id,
         $overrideArray = [
             't3ver_id' => $highestVerNumber + 1,
             't3ver_oid' => $id,
-            't3ver_label' => $label ?: $subVer . ' / ' . date('d-m-Y H:m:s'),
             't3ver_wsid' => $this->BE_USER->workspace,
             't3ver_state' => (string)($delete ? new VersionState(VersionState::DELETE_PLACEHOLDER) : new VersionState(VersionState::DEFAULT_STATE)),
             't3ver_count' => 0,
             't3ver_wsid' => $this->BE_USER->workspace,
             't3ver_state' => (string)($delete ? new VersionState(VersionState::DELETE_PLACEHOLDER) : new VersionState(VersionState::DEFAULT_STATE)),
             't3ver_count' => 0,
index 6a0f976..21050a8 100644 (file)
@@ -395,22 +395,6 @@ class DefaultTcaSchema
                 );
             }
 
                 );
             }
 
-            // workspaces t3ver_label column
-            if (!empty($tableDefinition['ctrl']['versioningWS'])
-                && (bool)$tableDefinition['ctrl']['versioningWS'] === true
-                && !$this->isColumnDefinedForTable($tables, $tableName, 't3ver_label')
-            ) {
-                $tables[$tablePosition]->addColumn(
-                    $this->quote('t3ver_label'),
-                    'string',
-                    [
-                        'default' => '',
-                        'notnull' => true,
-                        'length' => 255,
-                    ]
-                );
-            }
-
             // workspaces t3ver_wsid column
             if (!empty($tableDefinition['ctrl']['versioningWS'])
                 && (bool)$tableDefinition['ctrl']['versioningWS'] === true
             // workspaces t3ver_wsid column
             if (!empty($tableDefinition['ctrl']['versioningWS'])
                 && (bool)$tableDefinition['ctrl']['versioningWS'] === true
@@ -596,7 +580,6 @@ class DefaultTcaSchema
             $prioritizedFieldNames[] = 't3ver_move_id';
             $prioritizedFieldNames[] = 't3ver_count';
             $prioritizedFieldNames[] = 't3ver_tstamp';
             $prioritizedFieldNames[] = 't3ver_move_id';
             $prioritizedFieldNames[] = 't3ver_count';
             $prioritizedFieldNames[] = 't3ver_tstamp';
-            $prioritizedFieldNames[] = 't3ver_label';
         }
 
         return $prioritizedFieldNames;
         }
 
         return $prioritizedFieldNames;
index a973ae2..777e685 100644 (file)
@@ -195,14 +195,6 @@ return [
                 ]
             ]
         ],
                 ]
             ]
         ],
-        't3ver_label' => [
-            'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.versionLabel',
-            'config' => [
-                'type' => 'input',
-                'size' => 23,
-                'max' => 255
-            ]
-        ],
         'editlock' => [
             'exclude' => true,
             'l10n_mode' => 'exclude',
         'editlock' => [
             'exclude' => true,
             'l10n_mode' => 'exclude',
index 9604cc4..293ad57 100644 (file)
@@ -53,14 +53,6 @@ return [
         'language' => ['showitem' => 'sys_language_uid, l10n_parent'],
     ],
     'columns' => [
         'language' => ['showitem' => 'sys_language_uid, l10n_parent'],
     ],
     'columns' => [
-        't3ver_label' => [
-            'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.versionLabel',
-            'config' => [
-                'type' => 'input',
-                'size' => 30,
-                'max' => 30
-            ]
-        ],
         'sys_language_uid' => [
             'exclude' => true,
             'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.language',
         'sys_language_uid' => [
             'exclude' => true,
             'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.language',
index 378410b..30aa9b6 100644 (file)
@@ -34,14 +34,6 @@ return [
         'showRecordFieldList' => 'title, description, table_name, items'
     ],
     'columns' => [
         'showRecordFieldList' => 'title, description, table_name, items'
     ],
     'columns' => [
-        't3ver_label' => [
-            'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.versionLabel',
-            'config' => [
-                'type' => 'input',
-                'size' => 30,
-                'max' => 30
-            ]
-        ],
         'sys_language_uid' => [
             'exclude' => true,
             'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.language',
         'sys_language_uid' => [
             'exclude' => true,
             'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.language',
index 5ff4412..5881335 100644 (file)
@@ -32,14 +32,6 @@ return [
         'showRecordFieldList' => 'sys_language_uid,l10n_parent,l10n_diffsource,hidden,starttime,endtime,files,title,description'
     ],
     'columns' => [
         'showRecordFieldList' => 'sys_language_uid,l10n_parent,l10n_diffsource,hidden,starttime,endtime,files,title,description'
     ],
     'columns' => [
-        't3ver_label' => [
-            'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.versionLabel',
-            'config' => [
-                'type' => 'input',
-                'size' => 30,
-                'max' => 30
-            ]
-        ],
         'sys_language_uid' => [
             'exclude' => true,
             'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.language',
         'sys_language_uid' => [
             'exclude' => true,
             'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.language',
index 5f548d0..39ee918 100644 (file)
@@ -67,14 +67,6 @@ return [
                 'default' => ''
             ]
         ],
                 'default' => ''
             ]
         ],
-        't3ver_label' => [
-            'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.versionLabel',
-            'config' => [
-                'type' => 'input',
-                'size' => 30,
-                'max' => 30
-            ]
-        ],
         'fileinfo' => [
             'config' => [
                 'type' => 'user',
         'fileinfo' => [
             'config' => [
                 'type' => 'user',
index c7eff00..918fb17 100644 (file)
@@ -39,14 +39,6 @@ return [
         'showRecordFieldList' => 'hidden,uid_local,uid_foreign,tablenames,fieldname,sorting_foreign,table_local,title,description'
     ],
     'columns' => [
         'showRecordFieldList' => 'hidden,uid_local,uid_foreign,tablenames,fieldname,sorting_foreign,table_local,title,description'
     ],
     'columns' => [
-        't3ver_label' => [
-            'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.versionLabel',
-            'config' => [
-                'type' => 'input',
-                'size' => 30,
-                'max' => 30
-            ]
-        ],
         'sys_language_uid' => [
             'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.language',
             'config' => [
         'sys_language_uid' => [
             'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.language',
             'config' => [
index 5ef1ed4..ace600d 100644 (file)
@@ -1114,7 +1114,15 @@ The following database tables have been removed:
 The following database fields have been removed:
 
 * `pages.alias`
 The following database fields have been removed:
 
 * `pages.alias`
+* `pages.t3ver_label`
 * `index_phash.data_page_reg1`
 * `index_phash.data_page_reg1`
+* `sys_category.t3ver_label`
+* `sys_collection.t3ver_label`
+* `sys_file_collection.t3ver_label`
+* `sys_file_metadata.t3ver_label`
+* `sys_file_reference.t3ver_label`
+* `sys_template.t3ver_label`
+* `tt_content.t3ver_label`
 
 
 The following php doc annotations have been removed:
 
 
 The following php doc annotations have been removed:
index 4bdd2fc..9867c80 100644 (file)
                        <trans-unit id="LGL.allLanguages">
                                <source>[All]</source>
                        </trans-unit>
                        <trans-unit id="LGL.allLanguages">
                                <source>[All]</source>
                        </trans-unit>
-                       <trans-unit id="LGL.versionLabel">
-                               <source>Versioning Label</source>
-                       </trans-unit>
                        <trans-unit id="LGL.error">
                                <source>Error!</source>
                        </trans-unit>
                        <trans-unit id="LGL.error">
                                <source>Error!</source>
                        </trans-unit>
index 9e3770b..6f30e7b 100644 (file)
@@ -681,27 +681,6 @@ class DefaultTcaSchemaTest extends UnitTestCase
     /**
      * @test
      */
     /**
      * @test
      */
-    public function enrichAddsT3verLabel()
-    {
-        $GLOBALS['TCA']['aTable']['ctrl'] = [
-            'versioningWS' => true,
-        ];
-        $result = (new DefaultTcaSchema())->enrich([]);
-        $expectedColumn = new Column(
-            '`t3ver_label`',
-            Type::getType('string'),
-            [
-                'default' => '',
-                'notnull' => true,
-                'length' => 255,
-            ]
-        );
-        $this->assertEquals($expectedColumn, $result[0]->getColumn('t3ver_label'));
-    }
-
-    /**
-     * @test
-     */
     public function enrichAddsT3verWsid()
     {
         $GLOBALS['TCA']['aTable']['ctrl'] = [
     public function enrichAddsT3verWsid()
     {
         $GLOBALS['TCA']['aTable']['ctrl'] = [
index b162e6a..12a22f3 100644 (file)
@@ -58,14 +58,6 @@ return [
                 'default' => ''
             ]
         ],
                 'default' => ''
             ]
         ],
-        't3ver_label' => [
-            'displayCond' => 'FIELD:t3ver_label:REQ:true',
-            'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.versionLabel',
-            'config' => [
-                'type' => 'none',
-                'cols' => 27
-            ]
-        ],
         'hidden' => [
             'exclude' => true,
             'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.hidden',
         'hidden' => [
             'exclude' => true,
             'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.hidden',
index 613b835..3c47b42 100644 (file)
@@ -247,14 +247,6 @@ return [
                 'type' => 'passthrough',
                 'default' => ''
             ]
                 'type' => 'passthrough',
                 'default' => ''
             ]
-        ],
-        't3ver_label' => [
-            'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.versionLabel',
-            'config' => [
-                'type' => 'input',
-                'size' => 30,
-                'max' => 255
-            ]
         ]
     ],
     'types' => [
         ]
     ],
     'types' => [
index 67309e5..d8e786f 100644 (file)
@@ -222,14 +222,6 @@ return [
                 ],
                 'default' => 0
             ]
                 ],
                 'default' => 0
             ]
-        ],
-        't3ver_label' => [
-            'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.versionLabel',
-            'config' => [
-                'type' => 'input',
-                'size' => 30,
-                'max' => 255
-            ]
         ]
     ],
     'types' => [
         ]
     ],
     'types' => [
index fddd29f..f743bb1 100644 (file)
@@ -1151,14 +1151,6 @@ return [
                 'default' => ''
             ]
         ],
                 'default' => ''
             ]
         ],
-        't3ver_label' => [
-            'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.versionLabel',
-            'config' => [
-                'type' => 'input',
-                'size' => 30,
-                'max' => 255
-            ]
-        ],
         'selected_categories' => [
             'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:selected_categories',
             'config' => [
         'selected_categories' => [
             'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:selected_categories',
             'config' => [
index 8262f8f..e19e69c 100644 (file)
@@ -78,7 +78,6 @@
         <t3ver_oid>0</t3ver_oid>
         <t3ver_id>0</t3ver_id>
         <t3ver_wsid>987654321</t3ver_wsid>
         <t3ver_oid>0</t3ver_oid>
         <t3ver_id>0</t3ver_id>
         <t3ver_wsid>987654321</t3ver_wsid>
-        <t3ver_label>INITIAL PLACEHOLDER</t3ver_label>
         <t3ver_state>1</t3ver_state>
         <perms_everybody>15</perms_everybody>
     </pages>
         <t3ver_state>1</t3ver_state>
         <perms_everybody>15</perms_everybody>
     </pages>
@@ -90,7 +89,6 @@
         <t3ver_oid>11</t3ver_oid>
         <t3ver_id>1</t3ver_id>
         <t3ver_wsid>987654321</t3ver_wsid>
         <t3ver_oid>11</t3ver_oid>
         <t3ver_id>1</t3ver_id>
         <t3ver_wsid>987654321</t3ver_wsid>
-        <t3ver_label>First draft version</t3ver_label>
         <t3ver_state>-1</t3ver_state>
         <perms_everybody>15</perms_everybody>
     </pages>
         <t3ver_state>-1</t3ver_state>
         <perms_everybody>15</perms_everybody>
     </pages>
index e4578ce..0870a5d 100644 (file)
@@ -78,7 +78,6 @@
         <t3ver_oid>0</t3ver_oid>
         <t3ver_id>0</t3ver_id>
         <t3ver_wsid>987654321</t3ver_wsid>
         <t3ver_oid>0</t3ver_oid>
         <t3ver_id>0</t3ver_id>
         <t3ver_wsid>987654321</t3ver_wsid>
-        <t3ver_label>INITIAL PLACEHOLDER</t3ver_label>
         <t3ver_state>1</t3ver_state>
         <perms_everybody>15</perms_everybody>
     </pages>
         <t3ver_state>1</t3ver_state>
         <perms_everybody>15</perms_everybody>
     </pages>
@@ -90,7 +89,6 @@
         <t3ver_oid>11</t3ver_oid>
         <t3ver_id>1</t3ver_id>
         <t3ver_wsid>987654321</t3ver_wsid>
         <t3ver_oid>11</t3ver_oid>
         <t3ver_id>1</t3ver_id>
         <t3ver_wsid>987654321</t3ver_wsid>
-        <t3ver_label>First draft version</t3ver_label>
         <t3ver_state>-1</t3ver_state>
         <perms_everybody>15</perms_everybody>
     </pages>
         <t3ver_state>-1</t3ver_state>
         <perms_everybody>15</perms_everybody>
     </pages>
index c47ec9f..b7c308f 100644 (file)
@@ -394,7 +394,6 @@ class PageRepositoryTest extends \TYPO3\TestingFramework\Core\Functional\Functio
         $this->assertEquals(11, $pageRec['t3ver_oid']);
         $this->assertEquals(987654321, $pageRec['t3ver_wsid']);
         $this->assertEquals(-1, $pageRec['t3ver_state']);
         $this->assertEquals(11, $pageRec['t3ver_oid']);
         $this->assertEquals(987654321, $pageRec['t3ver_wsid']);
         $this->assertEquals(-1, $pageRec['t3ver_state']);
-        $this->assertSame('First draft version', $pageRec['t3ver_label']);
     }
 
     /**
     }
 
     /**
@@ -416,7 +415,6 @@ class PageRepositoryTest extends \TYPO3\TestingFramework\Core\Functional\Functio
         $this->assertEquals(11, $pageRec['t3ver_oid']);
         $this->assertEquals(987654321, $pageRec['t3ver_wsid']);
         $this->assertEquals(-1, $pageRec['t3ver_state']);
         $this->assertEquals(11, $pageRec['t3ver_oid']);
         $this->assertEquals(987654321, $pageRec['t3ver_wsid']);
         $this->assertEquals(-1, $pageRec['t3ver_state']);
-        $this->assertSame('First draft version', $pageRec['t3ver_label']);
     }
 
     ////////////////////////////////
     }
 
     ////////////////////////////////
index 9c26254..b95362c 100644 (file)
@@ -33,16 +33,6 @@ return [
         '1' => ['showitem' => ''],
     ],
     'columns' => [
         '1' => ['showitem' => ''],
     ],
     'columns' => [
-
-        't3ver_label' => [
-            'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.versionLabel',
-            'config' => [
-                'type' => 'input',
-                'size' => 30,
-                'max' => 255,
-            ]
-        ],
-
         'hidden' => [
             'exclude' => true,
             'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.hidden',
         'hidden' => [
             'exclude' => true,
             'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.hidden',
index d8a8e23..92687f5 100644 (file)
@@ -212,10 +212,7 @@ class DataHandlerHook
                             ->getConnectionForTable($table)
                             ->update(
                                 $table,
                             ->getConnectionForTable($table)
                             ->update(
                                 $table,
-                                [
-                                    't3ver_label' => 'DELETED!',
-                                    't3ver_state' => 2,
-                                ],
+                                ['t3ver_state' => 2],
                                 ['uid' => $id]
                             );
 
                                 ['uid' => $id]
                             );
 
@@ -1624,7 +1621,6 @@ class DataHandlerHook
                 $newVersion_placeholderFieldArray['perms_group'] = $access['perms_group'];
                 $newVersion_placeholderFieldArray['perms_everybody'] = $access['perms_everybody'];
             }
                 $newVersion_placeholderFieldArray['perms_group'] = $access['perms_group'];
                 $newVersion_placeholderFieldArray['perms_everybody'] = $access['perms_everybody'];
             }
-            $newVersion_placeholderFieldArray['t3ver_label'] = 'MovePlaceholder #' . $uid;
             $newVersion_placeholderFieldArray['t3ver_move_id'] = $uid;
             // Setting placeholder state value for temporary record
             $newVersion_placeholderFieldArray['t3ver_state'] = (string)new VersionState(VersionState::MOVE_PLACEHOLDER);
             $newVersion_placeholderFieldArray['t3ver_move_id'] = $uid;
             // Setting placeholder state value for temporary record
             $newVersion_placeholderFieldArray['t3ver_state'] = (string)new VersionState(VersionState::MOVE_PLACEHOLDER);