mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-18 23:08:46 +02:00
Delta revision id can be stored into the XML delta
SVN:trunk[2818]
This commit is contained in:
@@ -1259,7 +1259,7 @@ EOF
|
||||
/**
|
||||
* Get the text/XML version of the delta
|
||||
*/
|
||||
public function GetDelta($aNodesToIgnore = array())
|
||||
public function GetDelta($aNodesToIgnore = array(), $iRevisionId = null)
|
||||
{
|
||||
$oDelta = new MFDocument();
|
||||
foreach($this->ListChanges() as $oAlteredNode)
|
||||
@@ -1274,6 +1274,10 @@ EOF
|
||||
$oNode->parentNode->removeChild($oNode);
|
||||
}
|
||||
}
|
||||
if ($iRevisionId != null)
|
||||
{
|
||||
$oDelta->documentElement->setAttribute('revision_id', $iRevisionId);
|
||||
}
|
||||
return $oDelta->saveXML();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user