N°807 Portal: add_to_list can now be used in action rules (Note: Works only for IndirectLinkedSet, not LinkedSet)

SVN:trunk[4660]
This commit is contained in:
Guillaume Lajarige
2017-04-04 09:07:06 +00:00
parent ab6cd49fcb
commit 1cf25e49ae

View File

@@ -499,7 +499,7 @@ EOF
}
$aItemProperties = array(
'id' => $oItem->GetKey(),
'id' => ($this->oField->IsIndirect() && $oItem->IsNew()) ? -1*$oRemoteItem->GetKey() : $oItem->GetKey(),
'target_id' => $oRemoteItem->GetKey(),
'name' => $oItem->GetName(),
'attributes' => array()
@@ -529,7 +529,7 @@ EOF
}
$aItems[] = $aItemProperties;
$aItemIds[] = array('id' => $oItem->GetKey());
$aItemIds[] = array('id' => $aItemProperties['id']);
}
}