Skip to content

Commit

Permalink
[BUGFIX] Harden displayCond in event TCA
Browse files Browse the repository at this point in the history
Refs #1220
  • Loading branch information
derhansen committed Apr 13, 2024
1 parent 0aa557f commit 66c8064
Showing 1 changed file with 25 additions and 4 deletions.
29 changes: 25 additions & 4 deletions Configuration/TCA/tx_sfeventmgt_domain_model_event.php
Expand Up @@ -405,7 +405,12 @@
'l10n_mode' => 'exclude',
'l10n_display' => 'defaultAsReadonly',
'label' => 'LLL:EXT:sf_event_mgt/Resources/Private/Language/locallang_db.xlf:tx_sfeventmgt_domain_model_event.enable_waitlist_moveup',
'displayCond' => 'FIELD:enable_cancel:REQ:TRUE',
'displayCond' => [
'AND' => [
'FIELD:enable_registration:REQ:TRUE',
'FIELD:enable_cancel:REQ:TRUE',
],
],
'config' => [
'type' => 'check',
'renderType' => 'checkboxToggle',
Expand Down Expand Up @@ -464,7 +469,12 @@
'l10n_mode' => 'exclude',
'l10n_display' => 'defaultAsReadonly',
'label' => 'LLL:EXT:sf_event_mgt/Resources/Private/Language/locallang_db.xlf:tx_sfeventmgt_domain_model_event.cancel_deadline',
'displayCond' => 'FIELD:enable_cancel:REQ:TRUE',
'displayCond' => [
'AND' => [
'FIELD:enable_registration:REQ:TRUE',
'FIELD:enable_cancel:REQ:TRUE',
],
],
'config' => [
'type' => 'datetime',
'default' => 0,
Expand Down Expand Up @@ -563,7 +573,12 @@
'restrict_payment_methods' => [
'exclude' => true,
'label' => 'LLL:EXT:sf_event_mgt/Resources/Private/Language/locallang_db.xlf:tx_sfeventmgt_domain_model_event.restrict_payment_methods',
'displayCond' => 'FIELD:enable_payment:REQ:TRUE',
'displayCond' => [
'AND' => [
'FIELD:enable_registration:REQ:TRUE',
'FIELD:enable_payment:REQ:TRUE',
],
],
'onChange' => 'reload',
'config' => [
'type' => 'check',
Expand All @@ -583,7 +598,13 @@
'selected_payment_methods' => [
'exclude' => true,
'label' => 'LLL:EXT:sf_event_mgt/Resources/Private/Language/locallang_db.xlf:tx_sfeventmgt_domain_model_event.selected_payment_methods',
'displayCond' => 'FIELD:restrict_payment_methods:REQ:TRUE',
'displayCond' => [
'AND' => [
'FIELD:enable_registration:REQ:TRUE',
'FIELD:enable_payment:REQ:TRUE',
'FIELD:restrict_payment_methods:REQ:TRUE',
],
],
'config' => [
'type' => 'select',
'renderType' => 'selectCheckBox',
Expand Down

0 comments on commit 66c8064

Please sign in to comment.