Problem/Motivation
On my production site, I'm seeing PHP warnings like this:
Warning: Undefined array key "data" in Drupal\custom_field\Plugin\DataType\CustomFieldStringLong->getFormat() (line 72 of /[path]/custom_field/src/Plugin/DataType/CustomFieldStringLong.php)
Warning: Undefined array key "formatted" in Drupal\custom_field\Plugin\DataType\CustomFieldStringLong->getFormat() (line 75 of /[path]/custom_field/src/Plugin/DataType/CustomFieldStringLong.php)
I haven't been able to reproduce the problem on a local environment.
Steps to reproduce
Unknown.
Proposed resolution
Add sanity checks and default values to these array keys.
Remaining tasks
Make a MR.
Issue fork custom_field-3537231
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 #3
benstallings commentedComment #6
apmsooner commentedThanks Ben. It's merged!
Comment #7
apmsooner commented