mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-17 06:18:44 +02:00
Added an automatic naming for the change tickets based on their Id (Same as for Incident tickets but starting with C-).
SVN:trunk[132]
This commit is contained in:
@@ -179,6 +179,19 @@ class bizChangeTicket extends cmdbAbstractObject
|
||||
$this->Set('last_update', time());
|
||||
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