From 837cbb5200b2d3c5f8714cdb40ad6cb8a991cf96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rory=20Z=C3=BCnd?= Date: Wed, 31 Jan 2024 12:10:41 +0100 Subject: [PATCH] task | add foreignKey declaration for form and module fields --- contao/dca/tl_content.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contao/dca/tl_content.php b/contao/dca/tl_content.php index e873bfaa29..39a60017d0 100644 --- a/contao/dca/tl_content.php +++ b/contao/dca/tl_content.php @@ -741,6 +741,7 @@ 'inputType' => 'select', 'options_callback' => array('tl_content', 'getForms'), 'eval' => array('mandatory'=>true, 'chosen'=>true, 'submitOnChange'=>true, 'tl_class'=>'w50 wizard'), + 'foreignKey' => 'tl_form.title', 'wizard' => array ( array('tl_content', 'editForm') @@ -751,6 +752,7 @@ ( 'inputType' => 'select', 'eval' => array('mandatory'=>true, 'chosen'=>true, 'submitOnChange'=>true, 'tl_class'=>'w50 wizard'), + 'foreignKey' => 'tl_module.name', 'wizard' => array ( array('tl_content', 'editModule')