diff --git a/Classes/Domain/Model/News.php b/Classes/Domain/Model/News.php index 544303a230..4cbd9412ea 100644 --- a/Classes/Domain/Model/News.php +++ b/Classes/Domain/Model/News.php @@ -65,11 +65,6 @@ class News extends AbstractEntity */ protected $deleted = false; - /** - * @var int - */ - protected $cruserId = 0; - /** * @var string */ @@ -1268,26 +1263,6 @@ public function getDayOfTimestamp(): int return (int)$this->tstamp->format('d'); } - /** - * Get id of creator user - * - * @return int - */ - public function getCruserId(): int - { - return $this->cruserId; - } - - /** - * Set cruser id - * - * @param int $cruserId id of creator user - */ - public function setCruserId($cruserId): void - { - $this->cruserId = $cruserId; - } - /** * Get editlock flag * diff --git a/Configuration/TCA/Overrides/z_misc_12_adoptions.php b/Configuration/TCA/Overrides/z_misc_12_adoptions.php index a95e3828c4..43e68a69ae 100644 --- a/Configuration/TCA/Overrides/z_misc_12_adoptions.php +++ b/Configuration/TCA/Overrides/z_misc_12_adoptions.php @@ -8,8 +8,6 @@ $versionInformation = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Information\Typo3Version::class); if ($versionInformation->getMajorVersion() > 11) { foreach (['news', 'link', 'tag'] as $tableSuffix) { - // remove cruser_id - unset($GLOBALS['TCA']['tx_news_domain_model_' . $tableSuffix]['ctrl']['cruser_id']); // set datetime for tstamp/crdate foreach (['tstamp', 'crdate'] as $dateField) { $GLOBALS['TCA']['tx_news_domain_model_' . $tableSuffix]['columns'][$dateField]['config'] = [ diff --git a/Configuration/TCA/tx_news_domain_model_link.php b/Configuration/TCA/tx_news_domain_model_link.php index 9a05c82e95..36d36548e1 100644 --- a/Configuration/TCA/tx_news_domain_model_link.php +++ b/Configuration/TCA/tx_news_domain_model_link.php @@ -14,7 +14,6 @@ 'label_alt_force' => true, 'tstamp' => 'tstamp', 'crdate' => 'crdate', - 'cruser_id' => 'cruser_id', 'languageField' => 'sys_language_uid', 'transOrigPointerField' => 'l10n_parent', 'transOrigDiffSourceField' => 'l10n_diffsource', diff --git a/Configuration/TCA/tx_news_domain_model_news.php b/Configuration/TCA/tx_news_domain_model_news.php index c1b9bd7b4a..81b1fafed2 100644 --- a/Configuration/TCA/tx_news_domain_model_news.php +++ b/Configuration/TCA/tx_news_domain_model_news.php @@ -124,7 +124,6 @@ 'hideAtCopy' => true, 'tstamp' => 'tstamp', 'crdate' => 'crdate', - 'cruser_id' => 'cruser_id', 'versioningWS' => true, 'origUid' => 't3_origuid', 'editlock' => 'editlock', @@ -203,12 +202,7 @@ ], ], ], - 'cruser_id' => [ - 'label' => 'cruser_id', - 'config' => [ - 'type' => 'passthrough', - ], - ], + 'pid' => [ 'label' => 'pid', 'config' => [ diff --git a/Configuration/TCA/tx_news_domain_model_tag.php b/Configuration/TCA/tx_news_domain_model_tag.php index a67abef464..e2b95574d1 100644 --- a/Configuration/TCA/tx_news_domain_model_tag.php +++ b/Configuration/TCA/tx_news_domain_model_tag.php @@ -13,7 +13,6 @@ 'label' => 'title', 'tstamp' => 'tstamp', 'crdate' => 'crdate', - 'cruser_id' => 'cruser_id', 'versioningWS' => true, 'languageField' => 'sys_language_uid', 'transOrigPointerField' => 'l10n_parent', diff --git a/ext_tables.sql b/ext_tables.sql index 5756e0be04..00a40375bc 100644 --- a/ext_tables.sql +++ b/ext_tables.sql @@ -6,7 +6,6 @@ CREATE TABLE tx_news_domain_model_news ( pid int(11) DEFAULT '0' NOT NULL, tstamp int(11) DEFAULT '0' NOT NULL, crdate int(11) DEFAULT '0' NOT NULL, - cruser_id int(11) DEFAULT '0' NOT NULL, editlock tinyint(4) DEFAULT '0' NOT NULL, sys_language_uid int(11) DEFAULT '0' NOT NULL, l10n_parent int(11) DEFAULT '0' NOT NULL, @@ -114,7 +113,6 @@ CREATE TABLE tx_news_domain_model_link ( pid int(11) DEFAULT '0' NOT NULL, tstamp int(11) DEFAULT '0' NOT NULL, crdate int(11) DEFAULT '0' NOT NULL, - cruser_id int(11) DEFAULT '0' NOT NULL, sys_language_uid int(11) DEFAULT '0' NOT NULL, l10n_parent int(11) DEFAULT '0' NOT NULL, l10n_diffsource mediumtext, @@ -140,7 +138,6 @@ CREATE TABLE tx_news_domain_model_tag ( pid int(11) DEFAULT '0' NOT NULL, tstamp int(11) DEFAULT '0' NOT NULL, crdate int(11) DEFAULT '0' NOT NULL, - cruser_id int(11) DEFAULT '0' NOT NULL, sorting int(11) DEFAULT '0' NOT NULL, deleted tinyint(4) DEFAULT '0' NOT NULL, hidden tinyint(4) DEFAULT '0' NOT NULL,