From 4279669aa33d8d6ad540ae31c67b0c933199a172 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Tue, 20 Oct 2026 10:14:50 +0200 Subject: [PATCH] fix: add TCA default 0 to relation selects in TCA overrides for MySQL strict mode --- .../ext/ep_events/Configuration/TCA/Overrides/pages.php | 2 ++ .../Configuration/TCA/tx_epproducts_domain_model_concept.php | 1 + .../ext/ep_theme/Configuration/TCA/Overrides/pages.php | 3 +++ .../Configuration/TCA/Overrides/tt_content_element_contact.php | 1 + 4 files changed, 7 insertions(+) diff --git a/public/typo3conf/ext/ep_events/Configuration/TCA/Overrides/pages.php b/public/typo3conf/ext/ep_events/Configuration/TCA/Overrides/pages.php index 066a3254..193186c2 100644 --- a/public/typo3conf/ext/ep_events/Configuration/TCA/Overrides/pages.php +++ b/public/typo3conf/ext/ep_events/Configuration/TCA/Overrides/pages.php @@ -59,6 +59,7 @@ call_user_func(function() { 'label' => 'Reiseart', 'config' => [ 'type' => 'select', + 'default' => 0, 'renderType' => 'selectSingle', 'items' => [ ['Keine Zuordnung', 0], @@ -74,6 +75,7 @@ call_user_func(function() { 'label' => 'Angebot/Beispielangebot', 'config' => [ 'type' => 'select', + 'default' => 0, 'renderType' => 'selectSingle', 'items' => [ ['Keine Zuordnung', 0], diff --git a/public/typo3conf/ext/ep_products/Configuration/TCA/tx_epproducts_domain_model_concept.php b/public/typo3conf/ext/ep_products/Configuration/TCA/tx_epproducts_domain_model_concept.php index 0dfcc071..f03196a5 100644 --- a/public/typo3conf/ext/ep_products/Configuration/TCA/tx_epproducts_domain_model_concept.php +++ b/public/typo3conf/ext/ep_products/Configuration/TCA/tx_epproducts_domain_model_concept.php @@ -403,6 +403,7 @@ return [ 'label' => 'Produkte', 'config' => [ 'type' => 'select', + 'default' => 0, 'renderType' => 'selectMultipleSideBySide', 'foreign_table' => 'tx_epproducts_domain_model_product', 'size' => 10, diff --git a/public/typo3conf/ext/ep_theme/Configuration/TCA/Overrides/pages.php b/public/typo3conf/ext/ep_theme/Configuration/TCA/Overrides/pages.php index 760c2044..dc6d8918 100644 --- a/public/typo3conf/ext/ep_theme/Configuration/TCA/Overrides/pages.php +++ b/public/typo3conf/ext/ep_theme/Configuration/TCA/Overrides/pages.php @@ -24,6 +24,7 @@ call_user_func(function() { 'label' => 'Land', 'config' => [ 'type' => 'select', + 'default' => 0, 'renderType' => 'selectSingle', 'foreign_table' => 'tx_epproducts_domain_model_country', 'foreign_table_where' => 'ORDER BY name', @@ -39,6 +40,7 @@ call_user_func(function() { 'label' => 'Gebiet', 'config' => [ 'type' => 'select', + 'default' => 0, 'renderType' => 'selectSingle', 'foreign_table' => 'tx_epproducts_domain_model_region', 'foreign_table_where' => 'ORDER BY name', @@ -106,6 +108,7 @@ call_user_func(function() { 'label' => 'Badge', 'config' => [ 'type' => 'select', + 'default' => 0, 'renderType' => 'selectSingle', 'foreign_table' => 'tx_epproducts_domain_model_badge', 'foreign_table_where' => 'ORDER BY title', diff --git a/public/typo3conf/ext/ep_theme/Configuration/TCA/Overrides/tt_content_element_contact.php b/public/typo3conf/ext/ep_theme/Configuration/TCA/Overrides/tt_content_element_contact.php index 00016cea..90b5ebec 100644 --- a/public/typo3conf/ext/ep_theme/Configuration/TCA/Overrides/tt_content_element_contact.php +++ b/public/typo3conf/ext/ep_theme/Configuration/TCA/Overrides/tt_content_element_contact.php @@ -22,6 +22,7 @@ call_user_func(function() { 'label' => 'Mitarbeiter', 'config' => [ 'type' => 'select', + 'default' => 0, 'renderType' => 'selectSingle', 'foreign_table' => 'tx_epproducts_domain_model_teammember', 'foreign_table_where' => 'ORDER BY name',