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

This commit is contained in:
Anne-Cath
2025-11-27 12:00:22 +01:00
parent 03e25a226e
commit cf1eb4da61
3 changed files with 23 additions and 2 deletions

View File

@@ -32,6 +32,7 @@ use ValueSetObjects;
*/
class AttributeLinkedSet extends AttributeDefinition
{
public $bAllowAllData = false;
/**
* Useless constructor, but if not present PHP 7.4.0/7.4.1 is crashing :( (N°2329)
*
@@ -50,6 +51,11 @@ class AttributeLinkedSet extends AttributeDefinition
$this->aCSSClasses[] = 'attribute-set';
}
public function AllowAllData()
{
$this->bAllowAllData = true;
}
public static function ListExpectedParams()
{
return array_merge(
@@ -89,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));
$oValSetDef = new ValueSetObjects('SELECT '.LinkSetModel::GetTargetClass($this), '', [], $this->bAllowAllData);
}
return $oValSetDef;