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;