From 7a3e36c09229e7cbdd2be7bfec1475644427aec7 Mon Sep 17 00:00:00 2001 From: yuri Date: Fri, 4 Dec 2015 11:10:34 +0200 Subject: [PATCH] notifications suprt parent --- application/Espo/Hooks/Note/Notifications.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/application/Espo/Hooks/Note/Notifications.php b/application/Espo/Hooks/Note/Notifications.php index 3885321dd3..20f85e7fb1 100644 --- a/application/Espo/Hooks/Note/Notifications.php +++ b/application/Espo/Hooks/Note/Notifications.php @@ -84,14 +84,14 @@ class Notifications extends \Espo\Core\Hooks\Base $parentType = $entity->get('parentType'); $parentId = $entity->get('parentId'); $superParentType = $entity->get('superParentType'); - $superParentTypeId = $entity->get('superParentTypeId'); + $superParentId = $entity->get('superParentId'); $userIdList = []; if ($parentType && $parentId) { $userIdList = array_merge($userIdList, $this->getSubscriberIdList($parentType, $parentId)); - if ($superParentType && $superParentTypeId) { - $userIdList = array_merge($userIdList, $this->getSubscriberIdList($superParentType, $superParentTypeId)); + if ($superParentType && $superParentId) { + $userIdList = array_merge($userIdList, $this->getSubscriberIdList($superParentType, $superParentId)); } } else { $targetType = $entity->get('targetType');