瀏覽代碼

(internal) Remove _altered_in when exporting the delta.

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@3847 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 9 年之前
父節點
當前提交
1f45f055d5
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      setup/modelfactory.class.inc.php

+ 6 - 0
setup/modelfactory.class.inc.php

@@ -1095,6 +1095,12 @@ EOF
 				}
 			}
 		}
+		$oNodesToClean = $oDelta->GetNodes('/itop_design//*[@_altered_in]');
+		foreach($oNodesToClean as $oNode)
+		{
+			$oNode->removeAttribute('_altered_in');
+		}
+		
 		if ($aAttributes != null)
 		{
 			foreach ($aAttributes as $sAttribute => $value)