mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-22 10:08:45 +02:00
N°944 Fix wrong XML generated when attribute name has been changed and redefinition of label is required
This commit is contained in:
@@ -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')
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user