From 8eafaee79886dcf4ec733be2c2c9d22f7f83c12d Mon Sep 17 00:00:00 2001 From: Daniel Siepmann Date: Thu, 2 Nov 2023 14:43:46 +0100 Subject: [PATCH] Allow to change highlight via backend form It was not possible to change the value of highlight for events due to broken TCA. This got fixed. The input is now streamlined to look the same as hidden to not irritate users. Relates: #10782 --- .../TCA/tx_events_domain_model_event.php | 7 +++-- Documentation/Changelog/3.5.2.rst | 30 +++++++++++++++++++ 2 files changed, 35 insertions(+), 2 deletions(-) create mode 100644 Documentation/Changelog/3.5.2.rst diff --git a/Configuration/TCA/tx_events_domain_model_event.php b/Configuration/TCA/tx_events_domain_model_event.php index dc2de18..39c185e 100644 --- a/Configuration/TCA/tx_events_domain_model_event.php +++ b/Configuration/TCA/tx_events_domain_model_event.php @@ -232,9 +232,12 @@ 'label' => $l10nPath . ':tx_events_domain_model_event.highlight', 'config' => [ 'type' => 'check', + 'renderType' => 'checkboxToggle', 'items' => [ - '1' => [ - '0' => $l10nPathLang . ':labels.enabled', + [ + 0 => '', + 1 => '', + 'invertStateDisplay' => false, ], ], 'default' => 0, diff --git a/Documentation/Changelog/3.5.2.rst b/Documentation/Changelog/3.5.2.rst new file mode 100644 index 0000000..09e265b --- /dev/null +++ b/Documentation/Changelog/3.5.2.rst @@ -0,0 +1,30 @@ +3.5.2 +===== + +Breaking +-------- + +Nothing + +Features +-------- + +Nothing + +Fixes +----- + +* Fix broken TCA for highlight property. + The highlight could not be saved. + An unexpected value (3) was submitted on selection. + We now migrated the property to look and act the same as hidden input. + +Tasks +----- + +Nothing + +Deprecation +----------- + +Nothing