Skip to content

EspoCRM – Open Source CRM Application

cleanup

Yuri Kuznetsovc446499ee9c8
diff --git a/application/Espo/Tools/Notification/RecordService.php b/application/Espo/Tools/Notification/RecordService.php
index bb1a603e4e..84b5f0b48f 100644
--- a/application/Espo/Tools/Notification/RecordService.php
+++ b/application/Espo/Tools/Notification/RecordService.php
@@ -83,40 +83,6 @@ class RecordService
$queryBuilder->where($this->getActionIdWhere($user->getId()));
}
- /*$queryBuilder
- ->leftJoin(
- Join
- ::createWithSubQuery(
- SelectBuilder::create()
- ->from(Notification::ENTITY_TYPE)
- ->select('actionId')
- ->select(
- Selection::create(
- Expr::max(Expr::column('number')),
- 'maxNumber'
- )
- )
- ->where(
- Expr::isNotNull(Expr::column('actionId'))
- )
- ->group('actionId')
- ->build(),
- 'subLatest'
- )
- ->withConditions(
- Cond::and(
- Cond::equal(
- Expr::column('notification.actionId'),
- Expr::alias('subLatest.actionId')
- ),
- Cond::equal(
- Expr::column('notification.number'),
- Expr::alias('subLatest.maxNumber')
- ),
- )
- )
- );*/
-
$offset = $searchParams->getOffset();
$limit = $searchParams->getMaxSize();
@@ -492,6 +458,7 @@ class RecordService
private function isGroupingEnabled(): bool
{
+ // @todo Config param?
return true;
}
}