Invalid argument supplied for foreach() in commerce_reports_views_pre_build() (line 79

Created on 9 May 2021, over 3 years ago
Updated 15 December 2023, 9 months ago

Steps to reproduce

On Drupal 8.9.14 Instal this patch then edit any commerce report views, after you can see in dlog:

"Warning: Invalid argument supplied for foreach() in commerce_reports_views_pre_build() (line 79 of /var/www/vhostsXXXX/httpdocs/modules/contrib/commerce_reports/commerce_reports.module)"

Seems be related to this code line:

foreach ($view->field as $key => $field_plugin) {

🐛 Bug report
Status

Postponed: needs info

Version

1.0

Component

Code

Created by

🇮🇹Italy AmeDSL

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024