diff --git a/business/ChangeMgmt.business.php b/business/ChangeMgmt.business.php index 4613d66ebf..ac59bcd8bd 100644 --- a/business/ChangeMgmt.business.php +++ b/business/ChangeMgmt.business.php @@ -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); + } } ////////////////////////////////////////////////////////////////////////////////////