This commit is contained in:
Yuri Kuznetsov
2024-11-15 13:08:10 +02:00
parent d8b3b5361a
commit 4eb375c1cf
22 changed files with 95 additions and 57 deletions
@@ -41,6 +41,7 @@ use Espo\Entities\Autofollow;
use Espo\Entities\User;
use Espo\Entities\Preferences;
use Espo\ORM\Defs\Params\RelationParam;
use Espo\ORM\EntityManager;
use Espo\ORM\Entity;
use Espo\ORM\Defs\RelationDefs;
@@ -601,7 +602,7 @@ class HookProcessor
$entityType = $entity->getEntityType();
$foreignEntityType = $foreignEntity->getEntityType();
$foreignLink = $entity->getRelationParam($link, 'foreign');
$foreignLink = $entity->getRelationParam($link, RelationParam::FOREIGN);
if (
!empty($options[self::OPTION_NO_STREAM]) ||
@@ -634,7 +635,7 @@ class HookProcessor
$entityType = $entity->getEntityType();
$foreignEntityType = $foreignEntity->getEntityType();
$foreignLink = $entity->getRelationParam($link, 'foreign');
$foreignLink = $entity->getRelationParam($link, RelationParam::FOREIGN);
if (
!empty($options[self::OPTION_NO_STREAM]) ||