Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
sendgrid_integration
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
sendgrid_integration
Commits
9770f228
Commit
9770f228
authored
Feb 22, 2023
by
Ryan McVeigh
Committed by
Brady
Feb 24, 2023
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3291891
: Stats data variable name mismatch
parent
08672829
Branches
Branches containing commit
Tags
8.x-2.1
Tags containing commit
2 merge requests
!30
Issue #2971991 by amykhailova, code-drupal: "Cc" Recipient not receiving email...
,
!21
Issue #3291891: Stats data variable name mismatch
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/sendgrid_integration_reports/src/Api.php
+2
-2
2 additions, 2 deletions
modules/sendgrid_integration_reports/src/Api.php
with
2 additions
and
2 deletions
modules/sendgrid_integration_reports/src/Api.php
+
2
−
2
View file @
9770f228
...
...
@@ -348,14 +348,14 @@ class Api {
];
// Lets try and retrieve the browser statistics.
$statsdata
=
$this
->
getResponse
(
$path
,
$query
);
$stats
_
data
=
$this
->
getResponse
(
$path
,
$query
);
if
(
!
$stats_data
)
{
return
[];
}
$data
=
[];
// Determine all browsers. Nested foreach to
// iterate over all data returned per aggregation.
foreach
(
$statsdata
as
$item
)
{
foreach
(
$stats
_
data
as
$item
)
{
foreach
(
$item
->
stats
as
$inneritem
)
{
if
(
array_key_exists
(
$inneritem
->
name
,
$data
))
{
$data
[
$inneritem
->
name
]
+=
$inneritem
->
metrics
->
opens
;
...
...
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment