mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-21 01:28:47 +02:00
Support several successive renaming of the same object
SVN:trunk[1980]
This commit is contained in:
@@ -1595,7 +1595,15 @@ class MFElement extends DOMElement
|
||||
*/
|
||||
public function Rename($sId)
|
||||
{
|
||||
$this->setAttribute('_old_id', $this->getAttribute('id'));
|
||||
$sOriginalId = $this->getAttribute('_old_id');
|
||||
if ($sOriginalId == '')
|
||||
{
|
||||
$this->setAttribute('_old_id', $this->getAttribute('id'));
|
||||
}
|
||||
else if($sOriginalId == $sId)
|
||||
{
|
||||
$this->removeAttribute('_old_id');
|
||||
}
|
||||
$this->setAttribute('id', $sId);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user