Problem/Motivation
When visiting /admin/config/domain/config-ui, a PHP warning is triggered twice:
Warning: Undefined array key "#title" in Drupal\Core\Form\ConfigFormBase->checkConfigOverrides() (line 363 of core/lib/Drupal/Core/Form/ConfigFormBase.php)
This occurs because the path_pages textarea element in SettingsForm::buildForm() has a #config_target but no #title property. When Drupal core's ConfigFormBase::checkConfigOverrides() processes form elements with configuration overrides, it assumes all elements have a #title property (introduced in #2408549).
Drupal Version
10.6.2
Domain module version
2.0.0-rc1
Actual Behavior
Warning: Undefined array key "#title" in Drupal\Core\Form\ConfigFormBase->checkConfigOverrides() (line 363 of core/lib/Drupal/Core/Form/ConfigFormBase.php)
Steps to reproduce
1. Install Domain and Domain Config UI modules
2. Visit /admin/config/domain/config-ui
3. Observe PHP warnings in logs
| Comment | File | Size | Author |
|---|---|---|---|
| domain_missing-title.patch | 496 bytes | fox mulder |
Issue fork domain-3568549
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 #4
mably commentedHi @fox-mulder, can you give a try to this issue's MR please?
You can check it using this issue's Tugboat live preview (login: admin/admin).
Comment #5
mably commentedComment #8
fox mulder commentedHi @mably, MR !303 solves the issue.
Comment #9
mably commentedCool, thanks for the feedback @fox-mulder, let's merge it!
Comment #10
mably commentedComment #12
mably commentedComment #14
mably commented