Skip to content

EspoCRM – Open Source CRM Application

ref

Yuri Kuznetsovf3c4e631cdcb
diff --git a/application/Espo/Tools/Stream/NoteAccessControl.php b/application/Espo/Tools/Stream/NoteAccessControl.php
index 0ae6514939..79d8327f6f 100644
--- a/application/Espo/Tools/Stream/NoteAccessControl.php
+++ b/application/Espo/Tools/Stream/NoteAccessControl.php
@@ -69,7 +69,7 @@ class NoteAccessControl
unset($data->attributes->became->$attribute);
}
- $note->set('data', $data);
+ $note->setData($data);
}
if ($note->getType() === Note::TYPE_STATUS && $note->getParentType()) {
@@ -86,7 +86,7 @@ class NoteAccessControl
$data->style = null;
}
- $note->set('data', $data);
+ $note->setData($data);
}
if ($note->getType() === Note::TYPE_CREATE && $note->getParentType()) {
@@ -103,7 +103,7 @@ class NoteAccessControl
$data->statusStyle = null;
}
- $note->set('data', $data);
+ $note->setData($data);
}
}
}