-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed error in FocusModel where clicks and submissions were for all f… #5257
Conversation
…ocus, not just the one selected
Works for me 👍 |
@@ -411,14 +411,14 @@ public function getStats(Focus $focus, $unit, \DateTime $dateFrom = null, \DateT | |||
|
|||
if ($focus->getType() != 'notification') { | |||
if ($focus->getType() == 'link') { | |||
$q = $query->prepareTimeDataQuery('focus_stats', 'date_added', ['type' => Stat::TYPE_CLICK]); | |||
$q = $query->prepareTimeDataQuery('focus_stats', 'date_added', ['type' => Stat::TYPE_CLICK,'focus_id' => $focus->getId()]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix the code standards, please.
https://travis-ci.org/mautic/mautic/jobs/295299190#L1340
There should be a space after the comma.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have added the space.
Fix works properly |
…ocus, not just the one selected
Description: Focus stats were showing global clicks/submissions, not stats for just the viewed focus item.
Steps to reproduce the bug:
Steps to test this PR:
List deprecations along with the new alternative:
List backwards compatibility breaks: