diff --git a/application/Espo/Modules/Crm/Services/TargetList.php b/application/Espo/Modules/Crm/Services/TargetList.php index aa58117d77..f75c5970fd 100644 --- a/application/Espo/Modules/Crm/Services/TargetList.php +++ b/application/Espo/Modules/Crm/Services/TargetList.php @@ -112,7 +112,7 @@ class TargetList extends \Espo\Services\Record $selectParams['whereClause'][] = array( 'action=' => $includingActionList ); - $selectParams['groupBy'] = ['parentId', 'parentType']; + $selectParams['groupBy'] = ['parentId', 'parentType', 'id']; $notSelectParams['whereClause'][] = array( 'action=' => $excludingActionList