Fix warning for undefined array key "start_date"

Created on 23 May 2023, over 1 year ago
Updated 6 June 2023, over 1 year ago

Problem/Motivation

When using views to create a report with charts, I get the following error:
Warning: Undefined array key "start_date" in /var/www/html/public_html/modules/contrib/google_analytics_reports/src/Plugin/views/query/GoogleAnalyticsQuery.php resulting in the chart not being displayed (unless I hide the errors).

Proposed resolution

  • Add a basic check

Remaining tasks

  • ✅ File an issue
  • ✅ Addition/Change/Update/Fix
  • ✅ Testing to ensure no regression
  • ➖ Automated unit testing coverage
  • ➖ Automated functional testing coverage
  • ➖ UX/UI designer responsibilities
  • ➖ Readability
  • ➖ Accessibility
  • ➖ Performance
  • ➖ Security
  • ➖ Documentation
  • ✅ Code review by maintainers
  • ✅ Full testing and approval
  • ✅ Credit contributors
  • ✅ Review with the product owner
  • ✅ Release notes snippet
  • ✅ Release google_analytics_reports-4.0.0-alpha4

API changes

  • N/A

Data model changes

  • N/A

Release notes snippet

🐛 Bug report
Status

Fixed

Version

4.0

Component

All modules

Created by

🇬🇷Greece vensires

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024