N°5221 - DG Form: display related URs without the scope and its flag <ignore_silo>

This commit is contained in:
Anne-Cath
2025-11-28 11:10:00 +01:00
parent cf1eb4da61
commit 80cdfc1a34

View File

@@ -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