From 52b2a5b3876ca037af9ac563a36b05e746fa3539 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Thu, 25 Jan 2024 12:15:54 +0100 Subject: [PATCH] fix: sort product select field by internal name --- .../Configuration/TCA/Overrides/tt_content.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/public/typo3conf/ext/ep_theme/Configuration/TCA/Overrides/tt_content.php b/public/typo3conf/ext/ep_theme/Configuration/TCA/Overrides/tt_content.php index bd2f1493..60367d05 100644 --- a/public/typo3conf/ext/ep_theme/Configuration/TCA/Overrides/tt_content.php +++ b/public/typo3conf/ext/ep_theme/Configuration/TCA/Overrides/tt_content.php @@ -22,7 +22,7 @@ call_user_func(function () { 'type' => 'select', 'renderType' => 'selectSingle', 'foreign_table' => 'tx_epproducts_domain_model_country', - 'foreign_table_where' => 'ORDER BY name', + 'foreign_table_where' => 'ORDER BY name ASC', 'items' => [ ['Keine Zuordnung', 0], ], @@ -38,7 +38,7 @@ call_user_func(function () { 'type' => 'select', 'renderType' => 'selectSingle', 'foreign_table' => 'tx_epproducts_domain_model_region', - 'foreign_table_where' => 'ORDER BY name', + 'foreign_table_where' => 'ORDER BY name ASC', 'items' => [ ['Keine Zuordnung', 0], ], @@ -54,7 +54,7 @@ call_user_func(function () { 'type' => 'select', 'renderType' => 'selectSingle', 'foreign_table' => 'tx_epproducts_domain_model_city', - 'foreign_table_where' => 'ORDER BY name', + 'foreign_table_where' => 'ORDER BY name ASC', 'items' => [ ['Keine Zuordnung', 0], ], @@ -70,7 +70,7 @@ call_user_func(function () { 'type' => 'select', 'renderType' => 'selectSingle', 'foreign_table' => 'tx_epproducts_domain_model_hotel', - 'foreign_table_where' => 'ORDER BY name', + 'foreign_table_where' => 'ORDER BY name ASC', 'items' => [ ['Keine Zuordnung', 0], ], @@ -86,7 +86,7 @@ call_user_func(function () { 'type' => 'select', 'renderType' => 'selectSingle', 'foreign_table' => 'tx_epproducts_domain_model_concept', - 'foreign_table_where' => 'ORDER BY name', + 'foreign_table_where' => 'ORDER BY name ASC', 'items' => [ ['Keine Zuordnung', 0], ], @@ -102,7 +102,7 @@ call_user_func(function () { 'type' => 'select', 'renderType' => 'selectSingle', 'foreign_table' => 'tx_epproducts_domain_model_product', - 'foreign_table_where' => 'ORDER BY name', + 'foreign_table_where' => 'ORDER BY name_internal, name ASC', 'items' => [ ['Keine Zuordnung', 0], ],