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 {