From d54e71f0f9cd9d53944c088d646b877e20201571 Mon Sep 17 00:00:00 2001 From: Anne-Cath Date: Fri, 27 Feb 2026 11:21:32 +0100 Subject: [PATCH] =?UTF-8?q?N=C2=B09248=20-=20REST=20API=20-=20Updating=20a?= =?UTF-8?q?=20link=20creates=20an=20empty=20caselog=20on=20the=20linked=20?= =?UTF-8?q?object=20when=20there=20is=20no=20change?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/ormlinkset.class.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/ormlinkset.class.inc.php b/core/ormlinkset.class.inc.php index af31e69f2d..e44060dce2 100644 --- a/core/ormlinkset.class.inc.php +++ b/core/ormlinkset.class.inc.php @@ -179,7 +179,7 @@ public function ModifyItem(DBObject $oLink) assert($oLink instanceof $this->sClass); $iObjectId = $oLink->GetKey(); - if (array_key_exists($iObjectId, $this->aPreserved)) { + if (array_key_exists($iObjectId, $this->aPreserved) && !$oLink->Equals(MetaModel::GetObject(get_class($oLink), $iObjectId, true))) { unset($this->aPreserved[$iObjectId]); $this->aModified[$iObjectId] = $oLink; $this->bHasDelta = true;