Problem/Motivation
Support php 8 would be great!
Steps to reproduce
go to bulk update exclude form, get a warning as below
Warning: foreach() argument must be of type array|object, string given in Drupal\Core\Render\Element\Tableselect::valueCallback()
Proposed resolution
pass empty array instead of empty string to default value property.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | after-patch.png | 188.98 KB | clarkssquared |
| #5 | before-patch.png | 496.49 KB | clarkssquared |
| #2 | foreach-argument must be of type array-object-3256364-1.patch | 610 bytes | mohamed nabawy |
Issue fork bulk_update_fields-3256364
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
mohamed nabawy commentedhere is a patch to fix this warning.
Comment #3
andregp commentedComment #4
proweb.ua commented#2 works
Comment #5
clarkssquared commentedHi Mohamed Nabawy,
I confirmed the issue was resolved when I applied patch #2 to the "Bulk Update Fields" module against Version 8.x-2.0-alpha4. Please see the screenshots attached.
For your review.
Thank you.
Comment #9
el1_1el commented