mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-20 07:42:17 +02:00
(Retrofit from trunk) N°807 Portal: add_to_list can now be used in action rules (Note: Works only for IndirectLinkedSet, not LinkedSet)
SVN:2.3[4661]
This commit is contained in:
@@ -499,7 +499,7 @@ EOF
|
|||||||
}
|
}
|
||||||
|
|
||||||
$aItemProperties = array(
|
$aItemProperties = array(
|
||||||
'id' => $oItem->GetKey(),
|
'id' => ($this->oField->IsIndirect() && $oItem->IsNew()) ? -1*$oRemoteItem->GetKey() : $oItem->GetKey(),
|
||||||
'target_id' => $oRemoteItem->GetKey(),
|
'target_id' => $oRemoteItem->GetKey(),
|
||||||
'name' => $oItem->GetName(),
|
'name' => $oItem->GetName(),
|
||||||
'attributes' => array()
|
'attributes' => array()
|
||||||
@@ -529,7 +529,7 @@ EOF
|
|||||||
}
|
}
|
||||||
|
|
||||||
$aItems[] = $aItemProperties;
|
$aItems[] = $aItemProperties;
|
||||||
$aItemIds[] = array('id' => $oItem->GetKey());
|
$aItemIds[] = array('id' => $aItemProperties['id']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user