From 8881450d596dc8851ab176147693e8ea139ffb61 Mon Sep 17 00:00:00 2001 From: Romain Quetiez Date: Fri, 9 Aug 2013 15:53:42 +0000 Subject: [PATCH] Delta revision id can be stored into the XML delta SVN:trunk[2818] --- setup/modelfactory.class.inc.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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(); }