Noticed that following #3026945, there's a case where a warning gets thrown when editing and then saving a view, as this property isn't set directly checking if it's false throws a warning.
Notice: Undefined property: Drupal\views\Entity\View::$batch_field_defaults in field_defaults_entity_presave() (line 16 of /var/www/drupalvm/docroot/modules/contrib/field_defaults/field_defaults.module)
Will attach a patch.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | notice-undefined-property-batch-field-defaults-2.patch | 490 bytes | thomwilhelm |
Comments
Comment #2
thomwilhelm commentedAttaching patch to fix this.
Comment #3
littlepixiez commentedI get this error using Paragraphs due to the fact the entity doesn't have the property defined. Patch works great for me, thanks!
Comment #4
us_man commentedHello,
thank you for this patch but, i've an error when i try to apply it with composer :
Cannot apply patch Notice: Undefined property $batch_field_defaults (https://www.drupal.org/files/issues/2019-03-18/notice-undefined-property-batch-field-defaults-2.patch)!Thanks
Comment #5
mrogers commentedI can confirm that this patch applies properly for me with the current 1.0 (non-dev) release.
Comment #6
frazras commentedWorks for me on version 8.x-1.0
Comment #7
danjdewhurst commentedConfirmed to work on version 1.0.0, I too have Paragraphs installed.
Comment #9
b_sharpe commentedThanks!