Problem/Motivation
When inserting a view with no contextual filters there are a couple of PHP warnings in the logs.
Steps to reproduce
Insert a view with no contextual filters.
Observe the following log messages:
Warning: array_filter() expects parameter 1 to be array, null given in Drupal\insert_view_adv\Form\InsertViewDialog->getClientValues() (line 371 of /app/web/modules/contrib/insert_view_adv/src/Form/InsertViewDialog.php)
Warning: implode(): Invalid arguments passed in Drupal\insert_view_adv\Form\InsertViewDialog->getClientValues() (line 376 of /app/web/modules/contrib/insert_view_adv/src/Form/InsertViewDialog.php)
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | insert-view-adv-php-warnings-on-views-without-contextual-filters-3300578-2.patch | 585 bytes | ericgsmith |
Comments
Comment #2
ericgsmith commentedPatched attached adding default value of an empty array.
Comment #4
a.dmitriiev commentedPatch was added, thanks.