From c78feffc4144c923fe2f253ff35ceea4e5788e27 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Thu, 30 Jun 2022 19:33:37 +0300 Subject: [PATCH] ref --- application/Espo/Services/Stream.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/application/Espo/Services/Stream.php b/application/Espo/Services/Stream.php index 1c5de53c3f..cb918015e9 100644 --- a/application/Espo/Services/Stream.php +++ b/application/Espo/Services/Stream.php @@ -767,7 +767,7 @@ class Stream 'createdById!=' => $user->getId(), 'usersMiddle.userId' => $user->getId(), 'parentId' => null, - 'type' => 'Post', + 'type' => NoteEntity::TYPE_POST, 'isGlobal' => false, ]) ->build(); @@ -783,7 +783,7 @@ class Stream ->where([ 'parentId' => null, 'portalsMiddle.portalId' => $portalIdList, - 'type' => 'Post', + 'type' => NoteEntity::TYPE_POST, 'isGlobal' => false, ]) ->build(); @@ -797,7 +797,7 @@ class Stream ->where([ 'parentId' => null, 'teamsMiddle.teamId' => $teamIdList, - 'type' => 'Post', + 'type' => NoteEntity::TYPE_POST, 'isGlobal' => false, ]) ->build(); @@ -821,7 +821,7 @@ class Stream ->where([ 'createdById' => $user->getId(), 'parentId' => null, - 'type' => 'Post', + 'type' => NoteEntity::TYPE_POST, 'isGlobal' => false, ]) ->build(); @@ -835,7 +835,7 @@ class Stream ->leftJoin('createdBy') ->where([ 'parentId' => null, - 'type' => 'Post', + 'type' => NoteEntity::TYPE_POST, 'isGlobal' => true, ]) ->build();