From c0e4f83d83a504b90ff6e7db6a90fb018c4ded6d Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Wed, 16 Sep 2020 12:53:28 +0300 Subject: [PATCH] fix mention hook --- application/Espo/Hooks/Note/Mentions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/Espo/Hooks/Note/Mentions.php b/application/Espo/Hooks/Note/Mentions.php index 1f046f0595..ccfbc51558 100644 --- a/application/Espo/Hooks/Note/Mentions.php +++ b/application/Espo/Hooks/Note/Mentions.php @@ -133,7 +133,7 @@ class Mentions } } - protected function notifyAboutMention(Entity $entity, \Espo\Entities\User $user, Entity $parent = null) + protected function notifyAboutMention(Entity $entity, User $user, Entity $parent = null) { if ($user->isPortal()) return; if ($parent) { @@ -145,7 +145,7 @@ class Mentions protected function getNotificationService() { if (empty($this->notificationService)) { - $this->notificationService = $this->getServiceFactory()->create('Notification'); + $this->notificationService = $this->serviceFactory->create('Notification'); } return $this->notificationService; }