Skip to content

Commit

Permalink
[BUGFIX] Don't show empty values in UTM diagrams
Browse files Browse the repository at this point in the history
  • Loading branch information
einpraegsam committed Aug 14, 2023
1 parent 4d049ae commit 6821f78
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Classes/Domain/Repository/UtmRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ public function findCombinedByField(string $field, FilterDto $filter): array
{
$connection = DatabaseUtility::getConnectionForTable(Utm::TABLE_NAME);
$sql = 'select count(utm.' . $field . ') count, utm.' . $field . ' from ' . Utm::TABLE_NAME . ' utm'
. ' where '
. $this->extendWhereClauseWithFilterTime($filter, false, 'utm')
. ' where ' . $field . ' != \'\''
. $this->extendWhereClauseWithFilterTime($filter, true, 'utm')
. $this->extendWhereClauseWithFilterSearchterms($filter, 'utm', 'utm_source')
. $this->extendWhereClauseWithFilterSearchterms($filter, 'utm', 'utm_medium', 'or')
. $this->extendWhereClauseWithFilterSearchterms($filter, 'utm', 'utm_campaign', 'or')
Expand All @@ -126,7 +126,7 @@ public function findCombinedByField(string $field, FilterDto $filter): array
. $this->extendWhereClauseWithFilterCampaign($filter, 'utm')
. $this->extendWhereClauseWithFilterSource($filter, 'utm')
. $this->extendWhereClauseWithFilterMedium($filter, 'utm')
. ' group by utm.' . $field . ' order by count desc limit 10';
. ' group by utm.' . $field . ' order by count desc limit 8';
return $connection->executeQuery($sql)->fetchAllAssociative();
}

Expand Down

0 comments on commit 6821f78

Please sign in to comment.