Problem/Motivation

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

config errors

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

CommentFileSizeAuthor
Screenshot 2024-02-15 at 4.50.38 PM.png420.3 KBesch
Command icon 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

esch created an issue. See original summary.

justin2pin made their first commit to this issue’s fork.

  • justin2pin committed c5352495 on 2.1.x authored by esch
    Issue #3422429 by esch: Install causes settings form errors
    
justin2pin’s picture

Status: Active » Fixed

Thanks - nice catch. Simplified to use null coalescing conditional assignment operator (??).

  • justin2pin committed c5352495 on decoupled authored by esch
    Issue #3422429 by esch: Install causes settings form errors
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.