소스 검색

Needed => define if not exists

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@2699 a333f486-631f-4898-b8df-5754b55c2be0
romainq 12 년 전
부모
커밋
4d4ecdc172
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      setup/modelfactory.class.inc.php

+ 1 - 1
setup/modelfactory.class.inc.php

@@ -1064,7 +1064,7 @@ EOF
 		if (!$oNodeClone)
 		{
 			$sAlteration = $oNode->getAttribute('_alteration');
-			$bCopyContents = ($sAlteration == 'replaced') || ($sAlteration == 'added');
+			$bCopyContents = ($sAlteration == 'replaced') || ($sAlteration == 'added') || ($sAlteration == 'needed');
 			$oNodeClone = $oTargetDoc->importNode($oNode->cloneNode($bCopyContents), $bCopyContents);
 			$oNodeClone->removeAttribute('_alteration');
 			if ($oNodeClone->hasAttribute('_old_id'))