fix mention hook

This commit is contained in:
Yuri Kuznetsov
2020-09-16 12:53:28 +03:00
parent 08e94694b2
commit c0e4f83d83
+2 -2
View File
@@ -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;
}