From 2b8a8d23eb14a7c3cb2427914cf0627a63b4f0db Mon Sep 17 00:00:00 2001 From: yuri Date: Tue, 14 Apr 2015 11:51:34 +0300 Subject: [PATCH] fix notifications hook --- application/Espo/Hooks/Common/Notifications.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/Espo/Hooks/Common/Notifications.php b/application/Espo/Hooks/Common/Notifications.php index e6ad7bd2b3..799713e602 100644 --- a/application/Espo/Hooks/Common/Notifications.php +++ b/application/Espo/Hooks/Common/Notifications.php @@ -64,7 +64,7 @@ class Notifications extends \Espo\Core\Hooks\Base $className = '\\Espo\\Custom\\Notificators\\' . $normalizedName; if (!class_exists($className)) { - $moduleName = $this->getMetadata()->getScopeModuleName($entityName); + $moduleName = $this->getMetadata()->getScopeModuleName($entityType); if ($moduleName) { $className = '\\Espo\\Modules\\' . $moduleName . '\\Notificators\\' . $normalizedName; } else {