mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
🐛 N°1939 REST/JSON: Fix must_exists flag for remote object of indirect linkedset
This commit is contained in:
@@ -1167,6 +1167,11 @@ class RestUtils
|
||||
foreach($value as $oValues)
|
||||
{
|
||||
$oLnk = static::MakeObjectFromFields($sLnkClass, $oValues);
|
||||
// Fix for N°1939
|
||||
if(($oAttDef instanceof AttributeLinkedSetIndirect) && ($oLnk->Get($oAttDef->GetExtKeyToRemote()) == 0))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
$aLinks[] = $oLnk;
|
||||
}
|
||||
$value = DBObjectSet::FromArray($sLnkClass, $aLinks);
|
||||
|
||||
Reference in New Issue
Block a user