From d1eef0853bb5da6dc79d118caea9bbe6e627256b Mon Sep 17 00:00:00 2001 From: acognet Date: Fri, 1 Jul 2022 10:49:07 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B05232=20-=20Deprecate=20\CMDBObject::DBCl?= =?UTF-8?q?oneTracked?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/cmdbobject.class.inc.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/core/cmdbobject.class.inc.php b/core/cmdbobject.class.inc.php index ff8d77f53..ea9329ba3 100644 --- a/core/cmdbobject.class.inc.php +++ b/core/cmdbobject.class.inc.php @@ -614,9 +614,10 @@ abstract class CMDBObject extends DBObject { return $this->DBCloneTracked_Internal(); } - /* - * @deprecated 3.1.0 not used N°5232 - */ + + /** + * @deprecated 3.1.0 N°5232 not used + */ public function DBCloneTracked(CMDBChange $oChange, $newKey = null) { self::SetCurrentChange($oChange); @@ -626,7 +627,7 @@ abstract class CMDBObject extends DBObject protected function DBCloneTracked_Internal($newKey = null) { $newKey = parent::DBClone($newKey); - $oClone = MetaModel::GetObject(get_class($this), $newKey); + $oClone = MetaModel::GetObject(get_class($this), $newKey); return $newKey; }