diff --git a/setup/modelfactory.class.inc.php b/setup/modelfactory.class.inc.php index fb7847ed2c..e342029f96 100644 --- a/setup/modelfactory.class.inc.php +++ b/setup/modelfactory.class.inc.php @@ -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(); }