From 5266ae7c44fe5c259148e1461887bacc9267cb60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Uzna=C5=84ski?= Date: Thu, 16 Nov 2023 21:09:28 +0100 Subject: [PATCH 01/11] [FEATURE] Make record timeable and hidable Resolves: #553 --- .../TCA/tx_tea_domain_model_product_tea.php | 144 ++++++------------ 1 file changed, 43 insertions(+), 101 deletions(-) diff --git a/Configuration/TCA/tx_tea_domain_model_product_tea.php b/Configuration/TCA/tx_tea_domain_model_product_tea.php index 49b4ac2a..a7695cb9 100644 --- a/Configuration/TCA/tx_tea_domain_model_product_tea.php +++ b/Configuration/TCA/tx_tea_domain_model_product_tea.php @@ -11,65 +11,51 @@ 'iconfile' => 'EXT:tea/Resources/Public/Icons/Record.svg', 'searchFields' => 'title, description', 'enablecolumns' => [ - 'fe_group' => 'fe_group', + 'disabled' => 'hidden', + 'starttime' => 'starttime', + 'endtime' => 'endtime', ], - 'transOrigPointerField' => 'l18n_parent', - 'transOrigDiffSourceField' => 'l18n_diffsource', - 'languageField' => 'sys_language_uid', - 'translationSource' => 'l10n_source', ], 'types' => [ - '1' => [ - 'showitem' => - '--div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general, - title, description, image, owner, - --div--;LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_product_tea.tabs.access, - --palette--;;access,', - ], - ], - 'palettes' => [ - 'access' => [ - 'label' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_product_tea.palettes.access', - 'showitem' => 'fe_group', - ], + '1' => ['showitem' => 'hidden, starttime, endtime, title, description, image'], ], 'columns' => [ - 'sys_language_uid' => [ + 'hidden' => [ 'exclude' => true, - 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.language', - 'config' => [ - 'type' => 'language', - ], - ], - 'l18n_parent' => [ - 'displayCond' => 'FIELD:sys_language_uid:>:0', - 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.l18n_parent', + 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.enabled', 'config' => [ - 'type' => 'select', - 'renderType' => 'selectSingle', + 'type' => 'check', + 'renderType' => 'checkboxToggle', 'items' => [ [ 'label' => '', - 'value' => 0, + 'invertStateDisplay' => true, ], ], - 'foreign_table' => 'tx_tea_domain_model_product_tea', - 'foreign_table_where' => - 'AND {#tx_tea_domain_model_product_tea}.{#pid}=###CURRENT_PID### - AND {#tx_tea_domain_model_product_tea}.{#sys_language_uid} IN (-1,0)', - 'default' => 0, ], ], - 'l10n_source' => [ + 'starttime' => [ + 'exclude' => true, + 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.starttime', 'config' => [ - 'type' => 'passthrough', + 'type' => 'datetime', + 'default' => 0, ], + 'l10n_mode' => 'exclude', + 'l10n_display' => 'defaultAsReadonly', ], - 'l18n_diffsource' => [ + 'endtime' => [ + 'exclude' => true, + 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.endtime', 'config' => [ - 'type' => 'passthrough', - 'default' => '', + 'type' => 'datetime', + 'default' => 0, + 'range' => [ + 'upper' => mktime(0, 0, 0, 1, 1, 2038), + ], ], + 'l10n_mode' => 'exclude', + 'l10n_display' => 'defaultAsReadonly', ], 'title' => [ 'label' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_product_tea.title', @@ -107,50 +93,8 @@ 'allowed' => 'common-image-types', ], ], - 'fe_group' => [ - 'exclude' => true, - 'l10n_mode' => 'exclude', - 'label' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_product_tea.fe_group', - 'config' => [ - 'type' => 'select', - 'renderType' => 'selectMultipleSideBySide', - 'size' => 7, - 'maxitems' => 20, - 'items' => [ - [ - 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.hide_at_login', - 'value' => -1, - ], - [ - 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.any_login', - 'value' => -2, - ], - [ - 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.usergroups', - 'value' => '--div--', - ], - ], - 'exclusiveKeys' => '-1,-2', - 'foreign_table' => 'fe_groups', - ], - ], - 'owner' => [ - 'exclude' => true, - 'l10n_mode' => 'exclude', - 'label' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_product_tea.owner', - 'config' => [ - 'type' => 'group', - 'allowed' => 'fe_users', - 'default' => 0, - 'size' => 1, - 'minitems' => 0, - 'maxitems' => 1, - 'hideSuggest' => true, - ], - ], ], ]; - $typo3Version = new \TYPO3\CMS\Core\Information\Typo3Version(); if ($typo3Version->getMajorVersion() < 12) { $tca = array_replace_recursive( @@ -169,13 +113,6 @@ ] ); unset($tca['columns']['title']['required']); - - $tca['columns']['l18n_parent']['config']['items'] = [ - [ - 0 => '', - 1 => 0, - ], - ]; $tca['columns']['image'] = [ 'label' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_product_tea.image', 'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig( @@ -192,19 +129,24 @@ ] ), ]; - $tca['columns']['fe_group']['config']['items'] = [ - [ - 0 => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.hide_at_login', - 1 => -1, - ], - [ - 0 => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.any_login', - 1 => -2, - ], - [ - 0 => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.usergroups', - 1 => '--div--', + $tca['columns']['hidden']['config'] = [ + 'items' => [ + 0 => '', + 1 => '', ], + 'invertStateDisplay' => true, + ]; + $tca['columns']['starttime']['config'] = [ + 'type' => 'input', + 'renderType' => 'inputDateTime', + 'eval' => 'datetime,int', + 'default' => 0, + ]; + $tca['columns']['endtime']['config'] = [ + 'type' => 'input', + 'renderType' => 'inputDateTime', + 'eval' => 'datetime,int', + 'default' => 0, ]; } From c77c46307b110bdc3fbb7622a35d8c4fcfe3c9d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Uzna=C5=84ski?= Date: Thu, 16 Nov 2023 21:13:19 +0100 Subject: [PATCH 02/11] Align with latest changes --- .../TCA/tx_tea_domain_model_product_tea.php | 119 +++++++++++++++++- 1 file changed, 118 insertions(+), 1 deletion(-) diff --git a/Configuration/TCA/tx_tea_domain_model_product_tea.php b/Configuration/TCA/tx_tea_domain_model_product_tea.php index a7695cb9..b14f554a 100644 --- a/Configuration/TCA/tx_tea_domain_model_product_tea.php +++ b/Configuration/TCA/tx_tea_domain_model_product_tea.php @@ -11,13 +11,30 @@ 'iconfile' => 'EXT:tea/Resources/Public/Icons/Record.svg', 'searchFields' => 'title, description', 'enablecolumns' => [ + 'fe_group' => 'fe_group', 'disabled' => 'hidden', 'starttime' => 'starttime', 'endtime' => 'endtime', ], + 'transOrigPointerField' => 'l18n_parent', + 'transOrigDiffSourceField' => 'l18n_diffsource', + 'languageField' => 'sys_language_uid', + 'translationSource' => 'l10n_source', ], 'types' => [ - '1' => ['showitem' => 'hidden, starttime, endtime, title, description, image'], + '1' => [ + 'showitem' => + '--div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general, + hidden, starttime, endtime,title, description, image, owner, + --div--;LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_product_tea.tabs.access, + --palette--;;access,', + ], + ], + 'palettes' => [ + 'access' => [ + 'label' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_product_tea.palettes.access', + 'showitem' => 'fe_group', + ], ], 'columns' => [ 'hidden' => [ @@ -57,6 +74,43 @@ 'l10n_mode' => 'exclude', 'l10n_display' => 'defaultAsReadonly', ], + 'sys_language_uid' => [ + 'exclude' => true, + 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.language', + 'config' => [ + 'type' => 'language', + ], + ], + 'l18n_parent' => [ + 'displayCond' => 'FIELD:sys_language_uid:>:0', + 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.l18n_parent', + 'config' => [ + 'type' => 'select', + 'renderType' => 'selectSingle', + 'items' => [ + [ + 'label' => '', + 'value' => 0, + ], + ], + 'foreign_table' => 'tx_tea_domain_model_product_tea', + 'foreign_table_where' => + 'AND {#tx_tea_domain_model_product_tea}.{#pid}=###CURRENT_PID### + AND {#tx_tea_domain_model_product_tea}.{#sys_language_uid} IN (-1,0)', + 'default' => 0, + ], + ], + 'l10n_source' => [ + 'config' => [ + 'type' => 'passthrough', + ], + ], + 'l18n_diffsource' => [ + 'config' => [ + 'type' => 'passthrough', + 'default' => '', + ], + ], 'title' => [ 'label' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_product_tea.title', 'config' => [ @@ -93,8 +147,50 @@ 'allowed' => 'common-image-types', ], ], + 'fe_group' => [ + 'exclude' => true, + 'l10n_mode' => 'exclude', + 'label' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_product_tea.fe_group', + 'config' => [ + 'type' => 'select', + 'renderType' => 'selectMultipleSideBySide', + 'size' => 7, + 'maxitems' => 20, + 'items' => [ + [ + 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.hide_at_login', + 'value' => -1, + ], + [ + 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.any_login', + 'value' => -2, + ], + [ + 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.usergroups', + 'value' => '--div--', + ], + ], + 'exclusiveKeys' => '-1,-2', + 'foreign_table' => 'fe_groups', + ], + ], + 'owner' => [ + 'exclude' => true, + 'l10n_mode' => 'exclude', + 'label' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_product_tea.owner', + 'config' => [ + 'type' => 'group', + 'allowed' => 'fe_users', + 'default' => 0, + 'size' => 1, + 'minitems' => 0, + 'maxitems' => 1, + 'hideSuggest' => true, + ], + ], ], ]; + $typo3Version = new \TYPO3\CMS\Core\Information\Typo3Version(); if ($typo3Version->getMajorVersion() < 12) { $tca = array_replace_recursive( @@ -113,6 +209,13 @@ ] ); unset($tca['columns']['title']['required']); + + $tca['columns']['l18n_parent']['config']['items'] = [ + [ + 0 => '', + 1 => 0, + ], + ]; $tca['columns']['image'] = [ 'label' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_product_tea.image', 'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig( @@ -148,6 +251,20 @@ 'eval' => 'datetime,int', 'default' => 0, ]; + $tca['columns']['fe_group']['config']['items'] = [ + [ + 0 => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.hide_at_login', + 1 => -1, + ], + [ + 0 => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.any_login', + 1 => -2, + ], + [ + 0 => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.usergroups', + 1 => '--div--', + ], + ]; } return $tca; From 23803ed9d34e65aa75f9c3d72be7155b93a16483 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Uzna=C5=84ski?= Date: Thu, 16 Nov 2023 21:17:56 +0100 Subject: [PATCH 03/11] Add missing type --- Configuration/TCA/tx_tea_domain_model_product_tea.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Configuration/TCA/tx_tea_domain_model_product_tea.php b/Configuration/TCA/tx_tea_domain_model_product_tea.php index b14f554a..4013dd9d 100644 --- a/Configuration/TCA/tx_tea_domain_model_product_tea.php +++ b/Configuration/TCA/tx_tea_domain_model_product_tea.php @@ -233,6 +233,7 @@ ), ]; $tca['columns']['hidden']['config'] = [ + 'type' => 'check', 'items' => [ 0 => '', 1 => '', From bcff9f2a72bf0445ec3b0f44f5b67c4939aba940 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Uzna=C5=84ski?= Date: Thu, 16 Nov 2023 21:20:42 +0100 Subject: [PATCH 04/11] Add more changes to palletes and access --- .../TCA/tx_tea_domain_model_product_tea.php | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/Configuration/TCA/tx_tea_domain_model_product_tea.php b/Configuration/TCA/tx_tea_domain_model_product_tea.php index 4013dd9d..ea432698 100644 --- a/Configuration/TCA/tx_tea_domain_model_product_tea.php +++ b/Configuration/TCA/tx_tea_domain_model_product_tea.php @@ -25,15 +25,26 @@ '1' => [ 'showitem' => '--div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general, - hidden, starttime, endtime,title, description, image, owner, + starttime, endtime,title, description, image, owner, --div--;LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_product_tea.tabs.access, + --palette--;;hidden, --palette--;;access,', ], ], 'palettes' => [ + 'hidden' => [ + 'showitem' => ' + hidden;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:field.default.hidden + ', + ], 'access' => [ 'label' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_product_tea.palettes.access', - 'showitem' => 'fe_group', + 'showitem' => ' + starttime;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:starttime_formlabel, + endtime;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:endtime_formlabel, + --linebreak--, + fe_group;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:fe_group_formlabel, + ', ], ], 'columns' => [ From 14c35b24f0934c6e506a9b2edbb3218febced40f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Uzna=C5=84ski?= Date: Thu, 16 Nov 2023 21:44:19 +0100 Subject: [PATCH 05/11] Fix for showitems --- Configuration/TCA/tx_tea_domain_model_product_tea.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Configuration/TCA/tx_tea_domain_model_product_tea.php b/Configuration/TCA/tx_tea_domain_model_product_tea.php index ea432698..572fa3e0 100644 --- a/Configuration/TCA/tx_tea_domain_model_product_tea.php +++ b/Configuration/TCA/tx_tea_domain_model_product_tea.php @@ -25,7 +25,7 @@ '1' => [ 'showitem' => '--div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general, - starttime, endtime,title, description, image, owner, + title, description, image, owner, --div--;LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_product_tea.tabs.access, --palette--;;hidden, --palette--;;access,', From fe7383b2816f2c9081deac59d0d3ee68fefa1b9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Uzna=C5=84ski?= Date: Thu, 16 Nov 2023 22:08:53 +0100 Subject: [PATCH 06/11] Fix for v11 --- Configuration/TCA/tx_tea_domain_model_product_tea.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Configuration/TCA/tx_tea_domain_model_product_tea.php b/Configuration/TCA/tx_tea_domain_model_product_tea.php index 572fa3e0..22e2e1a0 100644 --- a/Configuration/TCA/tx_tea_domain_model_product_tea.php +++ b/Configuration/TCA/tx_tea_domain_model_product_tea.php @@ -245,11 +245,13 @@ ]; $tca['columns']['hidden']['config'] = [ 'type' => 'check', + 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.enabled', 'items' => [ - 0 => '', - 1 => '', + [ + 0 => '', + 'invertStateDisplay' => true, + ], ], - 'invertStateDisplay' => true, ]; $tca['columns']['starttime']['config'] = [ 'type' => 'input', From 0eee01f6d449f7dc25a4c7af2fadcc9c6ae4ad38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Uzna=C5=84ski?= Date: Thu, 16 Nov 2023 22:10:41 +0100 Subject: [PATCH 07/11] Add changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 25794336..4f98d1d6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ This project adheres to [Semantic Versioning](https://semver.org/). - Add an FE editor (#864, #872, #874, #876) - Add automerging of green Dependabot PRs (#756) - Add type coverage calculation (#830) +- Make records timeable and hideable (#553) ### Changed - Rename TsConfig directory to `TSconfig` (#923) From 16cf94726ab1fb1bb8c9dce39f83dd05192f1ae8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Uzna=C5=84ski?= Date: Sun, 19 Nov 2023 22:24:38 +0100 Subject: [PATCH 08/11] Fixes after CR --- CHANGELOG.md | 2 +- Configuration/TCA/tx_tea_domain_model_product_tea.php | 4 ++-- Resources/Private/Language/de.locallang_db.xlf | 3 +++ Resources/Private/Language/locallang_db.xlf | 3 +++ 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4f98d1d6..382f009f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,11 +6,11 @@ This project adheres to [Semantic Versioning](https://semver.org/). ## x.y.z ### Added +- Make records timeable and hideable (#989) - Add support for PHP 8.3 (#965) - Add an FE editor (#864, #872, #874, #876) - Add automerging of green Dependabot PRs (#756) - Add type coverage calculation (#830) -- Make records timeable and hideable (#553) ### Changed - Rename TsConfig directory to `TSconfig` (#923) diff --git a/Configuration/TCA/tx_tea_domain_model_product_tea.php b/Configuration/TCA/tx_tea_domain_model_product_tea.php index 22e2e1a0..7dabc57d 100644 --- a/Configuration/TCA/tx_tea_domain_model_product_tea.php +++ b/Configuration/TCA/tx_tea_domain_model_product_tea.php @@ -50,7 +50,7 @@ 'columns' => [ 'hidden' => [ 'exclude' => true, - 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.enabled', + 'label' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_product_tea.hidden', 'config' => [ 'type' => 'check', 'renderType' => 'checkboxToggle', @@ -245,7 +245,7 @@ ]; $tca['columns']['hidden']['config'] = [ 'type' => 'check', - 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.enabled', + 'label' => 'LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_product_tea.hidden', 'items' => [ [ 0 => '', diff --git a/Resources/Private/Language/de.locallang_db.xlf b/Resources/Private/Language/de.locallang_db.xlf index 0750c98e..fa387a56 100644 --- a/Resources/Private/Language/de.locallang_db.xlf +++ b/Resources/Private/Language/de.locallang_db.xlf @@ -31,6 +31,9 @@ Usergroup Access Rights Zugriffsrechte für Benutzergruppen + + Sichtbar + diff --git a/Resources/Private/Language/locallang_db.xlf b/Resources/Private/Language/locallang_db.xlf index 1068b6ea..de64197f 100644 --- a/Resources/Private/Language/locallang_db.xlf +++ b/Resources/Private/Language/locallang_db.xlf @@ -24,6 +24,9 @@ Usergroup Access Rights + + Visible + From e3215733460dcef7e6b08a628837507d4802f98b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Uzna=C5=84ski?= Date: Mon, 20 Nov 2023 10:06:11 +0100 Subject: [PATCH 09/11] Fix for language --- Resources/Private/Language/de.locallang_db.xlf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Resources/Private/Language/de.locallang_db.xlf b/Resources/Private/Language/de.locallang_db.xlf index fa387a56..939220c9 100644 --- a/Resources/Private/Language/de.locallang_db.xlf +++ b/Resources/Private/Language/de.locallang_db.xlf @@ -32,7 +32,8 @@ Zugriffsrechte für Benutzergruppen - Sichtbar + Visible + Sichtbar From 091afe114f6949d52c4d52a23bba8443baa28f76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Uzna=C5=84ski?= Date: Mon, 20 Nov 2023 17:41:06 +0100 Subject: [PATCH 10/11] Fix for label --- Configuration/TCA/tx_tea_domain_model_product_tea.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Configuration/TCA/tx_tea_domain_model_product_tea.php b/Configuration/TCA/tx_tea_domain_model_product_tea.php index 7dabc57d..a5914ec9 100644 --- a/Configuration/TCA/tx_tea_domain_model_product_tea.php +++ b/Configuration/TCA/tx_tea_domain_model_product_tea.php @@ -34,7 +34,7 @@ 'palettes' => [ 'hidden' => [ 'showitem' => ' - hidden;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:field.default.hidden + hidden;LLL:EXT:tea/Resources/Private/Language/locallang_db.xlf:tx_tea_domain_model_product_tea.hidden ', ], 'access' => [ From d95a4b00c9b679a2757f6b29320c272517482972 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Uzna=C5=84ski?= Date: Mon, 27 Nov 2023 12:48:14 +0100 Subject: [PATCH 11/11] Make starttime and endtime consistent --- Configuration/TCA/tx_tea_domain_model_product_tea.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Configuration/TCA/tx_tea_domain_model_product_tea.php b/Configuration/TCA/tx_tea_domain_model_product_tea.php index a5914ec9..781270e5 100644 --- a/Configuration/TCA/tx_tea_domain_model_product_tea.php +++ b/Configuration/TCA/tx_tea_domain_model_product_tea.php @@ -68,6 +68,9 @@ 'config' => [ 'type' => 'datetime', 'default' => 0, + 'range' => [ + 'upper' => mktime(0, 0, 0, 1, 1, 2038), + ], ], 'l10n_mode' => 'exclude', 'l10n_display' => 'defaultAsReadonly',