From 2b63553090ca77eadcb319ad1e0395df21514d59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Sun, 22 Jun 2025 16:42:27 +0200 Subject: [PATCH] fix: add missing tca and sql for groupsprice sorting field --- ...roducts_domain_model_groupspriceconfig.php | 5 ++ .../TCA/tx_epproducts_domain_model_hotel.php | 56 +++++++++---------- .../typo3conf/ext/ep_products/ext_tables.sql | 1 + 3 files changed, 34 insertions(+), 28 deletions(-) diff --git a/public/typo3conf/ext/ep_products/Configuration/TCA/tx_epproducts_domain_model_groupspriceconfig.php b/public/typo3conf/ext/ep_products/Configuration/TCA/tx_epproducts_domain_model_groupspriceconfig.php index 1cd229f5..12dd22a7 100644 --- a/public/typo3conf/ext/ep_products/Configuration/TCA/tx_epproducts_domain_model_groupspriceconfig.php +++ b/public/typo3conf/ext/ep_products/Configuration/TCA/tx_epproducts_domain_model_groupspriceconfig.php @@ -181,5 +181,10 @@ return [ 'eval' => 'double2', ] ], + 'sorting' => [ + 'config' => [ + 'type' => 'passthrough' + ] + ], ], ]; diff --git a/public/typo3conf/ext/ep_products/Configuration/TCA/tx_epproducts_domain_model_hotel.php b/public/typo3conf/ext/ep_products/Configuration/TCA/tx_epproducts_domain_model_hotel.php index cacc0920..3ac340d4 100644 --- a/public/typo3conf/ext/ep_products/Configuration/TCA/tx_epproducts_domain_model_hotel.php +++ b/public/typo3conf/ext/ep_products/Configuration/TCA/tx_epproducts_domain_model_hotel.php @@ -1,10 +1,11 @@ [ - 'title' => 'LLL:EXT:ep_products/Resources/Private/Language/locallang.xlf:tx_epproducts_domain_model_hotel', + 'title' => 'LLL:EXT:ep_products/Resources/Private/Language/locallang.xlf:tx_epproducts_domain_model_hotel', 'default_sortby' => 'ORDER BY name', 'label' => 'name', - 'label_userFunc' => \EP\EpProducts\Service\LabelService::class . '->getHotelLabel', + 'label_userFunc' => \EP\EpProducts\Service\LabelService::class.'->getHotelLabel', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', @@ -42,10 +43,9 @@ return [ 'name' => ['showitem' => 'name,short_name,--linebreak--,header_title,header_subtitle,--linebreak--,headline'], 'categories' => ['showitem' => 'type,category'], 'season' => ['showitem' => 'main_season_from, main_season_to'], - 'others' => ['showitem' => 'season,groups_price_tax_label, groups_price_adolescents_age'] + 'others' => ['showitem' => 'season,groups_price_tax_label, groups_price_adolescents_age'], ], 'columns' => [ - 'sys_language_uid' => [ 'exclude' => 0, 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.language', @@ -56,7 +56,7 @@ return [ 'foreign_table_where' => 'ORDER BY sys_language.title', 'items' => [ ['LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.allLanguages', -1], - ['LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.default_value', 0] + ['LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.default_value', 0], ], ], ], @@ -85,7 +85,7 @@ return [ 'type' => 'input', 'size' => 30, 'max' => 255, - ] + ], ], 'hidden' => [ @@ -161,7 +161,7 @@ return [ 'type' => 'input', 'size' => 30, 'renderType' => 'inputLink', - ] + ], ], 'name' => [ 'exclude' => 0, @@ -170,7 +170,7 @@ return [ 'type' => 'text', 'cols' => 30, 'rows' => 2, - 'eval' => 'trim,required' + 'eval' => 'trim,required', ], ], 'short_name' => [ @@ -179,7 +179,7 @@ return [ 'config' => [ 'type' => 'input', 'size' => 30, - 'eval' => 'trim' + 'eval' => 'trim', ], ], 'keywords' => [ @@ -198,7 +198,7 @@ return [ 'config' => [ 'type' => 'input', 'size' => 30, - 'eval' => 'trim' + 'eval' => 'trim', ], ], 'teaser' => [ @@ -229,7 +229,7 @@ return [ 'config' => [ 'type' => 'input', 'size' => 30, - 'eval' => 'trim' + 'eval' => 'trim', ], ], 'header_subtitle' => [ @@ -238,7 +238,7 @@ return [ 'config' => [ 'type' => 'input', 'size' => 30, - 'eval' => 'trim' + 'eval' => 'trim', ], ], 'features' => [ @@ -281,7 +281,7 @@ return [ 'teaser_images', [ 'appearance' => [ - 'createNewRelationLinkTitle' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:images.addFileReference' + 'createNewRelationLinkTitle' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:images.addFileReference', ], 'overrideChildTca' => [ 'types' => [ @@ -309,7 +309,7 @@ return [ ], ], ], - 'maxitems' => 10 + 'maxitems' => 10, ], $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'] ), @@ -321,7 +321,7 @@ return [ 'header_images', [ 'appearance' => [ - 'createNewRelationLinkTitle' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:images.addFileReference' + 'createNewRelationLinkTitle' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:images.addFileReference', ], 'overrideChildTca' => [ 'types' => [ @@ -349,7 +349,7 @@ return [ ], ], ], - 'maxitems' => 10 + 'maxitems' => 10, ], $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'] ), @@ -361,7 +361,7 @@ return [ 'images', [ 'appearance' => [ - 'createNewRelationLinkTitle' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:images.addFileReference' + 'createNewRelationLinkTitle' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:images.addFileReference', ], 'overrideChildTca' => [ 'types' => [ @@ -398,7 +398,7 @@ return [ ], ], ], - 'maxitems' => 10 + 'maxitems' => 10, ], $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'] ), @@ -410,7 +410,7 @@ return [ 'reseller_images', [ 'appearance' => [ - 'createNewRelationLinkTitle' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:images.addFileReference' + 'createNewRelationLinkTitle' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:images.addFileReference', ], 'overrideChildTca' => [ 'types' => [ @@ -421,7 +421,7 @@ return [ ], ], ], - 'maxitems' => 10 + 'maxitems' => 10, ], $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'] ), @@ -432,7 +432,7 @@ return [ 'config' => [ 'type' => 'input', 'size' => 30, - 'eval' => 'trim' + 'eval' => 'trim', ], ], 'external_link' => [ @@ -461,7 +461,7 @@ return [ ], 'size' => 1, 'minItems' => 1, - 'maxItems' => 1 + 'maxItems' => 1, ], ], 'category' => [ @@ -480,8 +480,8 @@ return [ ], 'size' => 1, 'minItems' => 1, - 'maxItems' => 1 - ] + 'maxItems' => 1, + ], ], 'country' => [ 'exclude' => 0, @@ -596,8 +596,8 @@ return [ 'config' => [ 'type' => 'input', 'size' => 30, - 'eval' => 'trim' - ] + 'eval' => 'trim', + ], ], 'longitude' => [ 'exclude' => 0, @@ -605,8 +605,8 @@ return [ 'config' => [ 'type' => 'input', 'size' => 30, - 'eval' => 'trim' - ] + 'eval' => 'trim', + ], ], 'address' => [ 'exclude' => 0, diff --git a/public/typo3conf/ext/ep_products/ext_tables.sql b/public/typo3conf/ext/ep_products/ext_tables.sql index 2c71cbf4..dfb2ccee 100644 --- a/public/typo3conf/ext/ep_products/ext_tables.sql +++ b/public/typo3conf/ext/ep_products/ext_tables.sql @@ -321,6 +321,7 @@ CREATE TABLE tx_epproducts_domain_model_groupspriceconfig hidden tinyint(4) unsigned DEFAULT '0' NOT NULL, starttime int(11) unsigned DEFAULT '0' NOT NULL, endtime int(11) unsigned DEFAULT '0' NOT NULL, + sorting int(11) DEFAULT '0' NOT NULL, t3ver_oid int(11) DEFAULT '0' NOT NULL, t3ver_id int(11) DEFAULT '0' NOT NULL,