mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-18 23:08:46 +02:00
Added an automatic naming for the change tickets based on their Id (Same as for Incident tickets but starting with C-).
SVN:code[132]
This commit is contained in:
@@ -179,6 +179,19 @@ class bizChangeTicket extends cmdbAbstractObject
|
|||||||
$this->Set('last_update', time());
|
$this->Set('last_update', time());
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function ComputeFields()
|
||||||
|
{
|
||||||
|
if ($this->GetKey() > 0)
|
||||||
|
{
|
||||||
|
$sName = sprintf('C-%06d', $this->GetKey());
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$sName = "Id not set";
|
||||||
|
}
|
||||||
|
$this->Set('name', $sName);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|||||||
Reference in New Issue
Block a user