N°944 Fix wrong XML generated when attribute name has been changed and redefinition of label is required

This commit is contained in:
Molkobain
2018-11-13 11:48:04 +01:00
parent 4a5cb23730
commit c1a81e4f0d

View File

@@ -2142,6 +2142,12 @@ class MFElement extends Combodo\iTop\DesignElement
$oExisting = $this->_FindChildNode($oNode, $sSearchId);
if ($oExisting)
{
$sOldId = $oExisting->getAttribute('_old_id');
if(!empty($sOldId))
{
$oNode->setAttribute('_old_id', $sOldId);
}
$sPrevFlag = $oExisting->getAttribute('_alteration');
if ($sPrevFlag == 'removed')
{