mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-26 12:08:47 +02:00
N°2847 Fix hardcoded values for Activity New Entry object
This commit is contained in:
@@ -118,6 +118,22 @@ class ActivityPanel extends UIBlock
|
||||
{
|
||||
return $this->oObject;
|
||||
}
|
||||
/**
|
||||
* Return the object id for which the activity panel is for
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function GetObjectId(): int {
|
||||
return $this->oObject->GetKey();
|
||||
}
|
||||
/**
|
||||
* Return the object class for which the activity panel is for
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function GetObjectClass(): string {
|
||||
return get_class($this->oObject);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set all entries at once.
|
||||
|
||||
Reference in New Issue
Block a user