Open skacco opened 2 years ago
Hi, What do you mean by this:
"create an email with gmail tracking integration"
did you mean
Create an email and send to gmail? Or you wanted to use the Gmail Tracking plugin?
I am talking about using Gmail Tracking Plugin
@skacco are you talking about the Chrome extension? If so can you share a link to what you are using so we can get this issue to the right repo?
Mautic Version
4.2.x series
PHP version
7.4
What browsers are you seeing the problem on?
Not relevant
What happened?
A bug happened! Email was everything mark as read because there is an error on code inside app/bundles/EmailBundle/Controller line:655 // stat doesn't exist, create one if (null === $stat) { $lead['email'] = $email; // needed for stat $stat = $this->addStat($lead, $email, $query, $idHash); }
NOTE at this point stat is created so it always enter in the condition below and hitEmail was fired
SOLUTION: if (null === $stat) { $lead['email'] = $email; // needed for stat $stat = $this->addStat($lead, $email, $query, $idHash); } else { $model->hitEmail($idHash, $this->request); // add email event }
How can we reproduce this issue?
Step 1: create an email with gmail tracking integration
Relevant log output
No response
Code of Conduct