diff --git a/lib/Entities/NewsletterLinkEntity.php b/lib/Entities/NewsletterLinkEntity.php index 42cafcf19b..e6ff1a71ae 100644 --- a/lib/Entities/NewsletterLinkEntity.php +++ b/lib/Entities/NewsletterLinkEntity.php @@ -91,8 +91,6 @@ class NewsletterLinkEntity { * @return int */ function getTotalClicksCount() { - $criteria = Criteria::create() - ->where(Criteria::expr()->eq("link", $this)); - return $this->clicks->matching($criteria)->count(); + return $this->clicks->count(); } }