Quellcode durchsuchen

Needed => define if not exists

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@2699 a333f486-631f-4898-b8df-5754b55c2be0
romainq vor 12 Jahren
Ursprung
Commit
4d4ecdc172
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      setup/modelfactory.class.inc.php

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

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