In SMTPConfigForm::buildForm(), the warning message "Disabled fields are overridden in site-specific configuration file." displays unconditionally. Every time the SMTP settings form is rendered, the warning appears, even when no configuration is being overridden anywhere.

Reproduction steps:
1. Install the SMTP module on a fresh drupal site.
2. Don't add any config overrides
3. Visit /admin/config/system/smtp.
4. There is a warning

The fix:
Add a if statement that checks if there are overrides on 'smtp.settings' before displaying the warning message.

Issue fork smtp-3591659

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

lillian bozeman created an issue. See original summary.

lillian bozeman’s picture

Status: Active » Closed (works as designed)

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.