There are some notices and warnings in a case there is no "value" key in the $values here \Drupal\tablefield\Plugin\Field\FieldType\TablefieldItem::setValue
Warning: Invalid argument supplied for foreach() in Drupal\tablefield\Plugin\Field\FieldType\TablefieldItem->setValue() (line 190
Notice: Undefined index: value in Drupal\tablefield\Plugin\Field\FieldType\TablefieldItem->setValue() (line 190
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | tablefield-3174287-php_notices-1-D8.patch | 1.07 KB | nikita_tt |
Comments
Comment #2
nikita_ttComment #3
aslaymoore commentedTested on Drupal 9.2.9, PHP 7.4, and the patch fixed the warnings for me. Tablefield also still works as expected.
+1 RTBC
Comment #4
lolandese commentedChanging status to RTBC based on:
Comment #6
lolandese commented