From 5031e7f430d0d8bfa5f5c16ba863397ab1912bd5 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Fri, 9 Feb 2024 13:28:16 +0200 Subject: [PATCH] fix --- application/Espo/Entities/Note.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/application/Espo/Entities/Note.php b/application/Espo/Entities/Note.php index 4f67950ce3..54925025cd 100644 --- a/application/Espo/Entities/Note.php +++ b/application/Espo/Entities/Note.php @@ -240,7 +240,8 @@ class Note extends Entity public function setSuperParent(LinkParent $superParent): self { - $this->setValueObject('superParent', $superParent); + $this->set('superParentId', $superParent->getId()); + $this->set('superParentType', $superParent->getEntityType()); return $this; }