Problem/Motivation
When going to configuration settings, after install, there are a handful of errors being generated.

Steps to reproduce
After a fresh install, go to Mercury Editor settings (/admin/config/content/mercury-editor). You will see errors.
Proposed resolution
Add variable check to line 158 of /src/Form/SettingsForm.php.
'#default_value' => is_array($default_bundle_values) ? $default_bundle_values[$entity_type] : [],
Setup
Drupal: 10.2.3
PHP: 8.2.13
Mercury Editor: 2.1.0-alpha14
| Comment | File | Size | Author |
|---|---|---|---|
| Screenshot 2024-02-15 at 4.50.38 PM.png | 420.3 KB | esch |
Issue fork mercury_editor-3422429
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 #5
justin2pin commentedThanks - nice catch. Simplified to use null coalescing conditional assignment operator (??).