From bfaa25c707345242f930b60e435cc863ae6475c3 Mon Sep 17 00:00:00 2001 From: Daniel Siepmann Date: Tue, 16 Mar 2021 15:22:27 +0100 Subject: [PATCH] Do not allow self reference for postponed date --- Configuration/TCA/tx_events_domain_model_date.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Configuration/TCA/tx_events_domain_model_date.php b/Configuration/TCA/tx_events_domain_model_date.php index 2b03c26..5a8a68b 100644 --- a/Configuration/TCA/tx_events_domain_model_date.php +++ b/Configuration/TCA/tx_events_domain_model_date.php @@ -170,7 +170,7 @@ return [ 'type' => 'select', 'renderType' => 'selectSingle', 'foreign_table' => 'tx_events_domain_model_date', - 'foreign_table_where' => ' AND {#tx_events_domain_model_date}.{#event} = ###REC_FIELD_event###', + 'foreign_table_where' => ' AND {#tx_events_domain_model_date}.{#event} = ###REC_FIELD_event### AND {#tx_events_domain_model_date}.{#uid} != ###THIS_UID###', 'default' => '0', 'items' => [ '0' => [