From 80cdfc1a3493eee4891aada1886d22087d642e1e Mon Sep 17 00:00:00 2001 From: Anne-Cath Date: Fri, 28 Nov 2025 11:10:00 +0100 Subject: [PATCH] =?UTF-8?q?N=C2=B05221=20-=20DG=20Form:=20display=20relate?= =?UTF-8?q?d=20URs=20without=20the=20scope=20and=20its=20flag=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sources/Core/AttributeDefinition/AttributeLinkedSet.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sources/Core/AttributeDefinition/AttributeLinkedSet.php b/sources/Core/AttributeDefinition/AttributeLinkedSet.php index 5ae3788fa..7085e9d59 100644 --- a/sources/Core/AttributeDefinition/AttributeLinkedSet.php +++ b/sources/Core/AttributeDefinition/AttributeLinkedSet.php @@ -95,7 +95,7 @@ class AttributeLinkedSet extends AttributeDefinition $oValSetDef = $this->Get("allowed_values"); if (!$oValSetDef) { // Let's propose every existing value - $oValSetDef = new ValueSetObjects('SELECT '.LinkSetModel::GetTargetClass($this), '', [], $this->bAllowAllData); + $oValSetDef = new ValueSetObjects('SELECT '.LinkSetModel::GetTargetClass($this)); } return $oValSetDef; @@ -149,6 +149,9 @@ class AttributeLinkedSet extends AttributeDefinition } $oLinkSearch = new DBObjectSearch($sLinkClass); + if ($this->bAllowAllData) { + $oLinkSearch->AllowAllData(true); + } $oLinkSearch->AddCondition_PointingTo($oMyselfSearch, $sExtKeyToMe); if ($this->IsIndirect()) { // Join the remote class so that the archive flag will be taken into account