diff --git a/core/attributedef.class.inc.php b/core/attributedef.class.inc.php
index 882bf531fe..328516a2bb 100644
--- a/core/attributedef.class.inc.php
+++ b/core/attributedef.class.inc.php
@@ -241,14 +241,12 @@ class AttributeLinkedSet extends AttributeDefinition
//
if (($this->IsParam('default_value')) && array_key_exists('this', $aArgs))
{
-echo "### this est la
\n";
$aValues = $this->Get('default_value')->GetValues($aArgs);
$oSet = DBObjectSet::FromArray($this->Get('linked_class'), $aValues);
return $oSet;
}
else
{
-echo "### this manque a l'appel
\n";
return DBObjectSet::FromScratch($this->Get('linked_class'));
}
}
diff --git a/core/dbobjectset.class.php b/core/dbobjectset.class.php
index 1fcea5545c..f4ab4aff1b 100644
--- a/core/dbobjectset.class.php
+++ b/core/dbobjectset.class.php
@@ -214,6 +214,7 @@ class DBObjectSet
public function AddObjectArray($aObjects)
{
+ // #@# todo - add a check on the object class ?
foreach ($aObjects as $oObj)
{
$this->AddObject($oObj);
diff --git a/core/valuesetdef.class.inc.php b/core/valuesetdef.class.inc.php
index 78667e6fa1..21c67c16e9 100644
--- a/core/valuesetdef.class.inc.php
+++ b/core/valuesetdef.class.inc.php
@@ -180,6 +180,7 @@ class ValueSetRelatedObjectsFromLinkSet extends ValueSetDefinition
$aLinksToCreate[] = $oNewLink;
}
}
+ // #@# or AddObjectArray($aObjects) ?
$oSetToCreate = DBObjectSet::FromArray($this->m_sTargetLinkClass, $aLinksToCreate);
$this->m_aValues[$oObject->GetKey()] = $oObject->GetAsHTML($oObject->GetName());
}