Needed => define if not exists

SVN:trunk[2699]
This commit is contained in:
Romain Quetiez
2013-04-24 15:50:44 +00:00
parent 85c1f0d1aa
commit 519b9f1a73

View File

@@ -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'))