Config form displays original (not overriden) values

Created on 29 January 2021, almost 4 years ago
Updated 1 November 2023, about 1 year ago

Problem/Motivation

Configuration form uses $config = $this->configFactory->getEditable('smtp.settings');. I suppose the motivation for not displaying possibly over-ridden values is that you might not want a user saving the form, and then exporting the over-ridden configuration. However, this means there is no way to visually see what values will actually be used when sending emails.
If variables have been over-ridden then the input is disabled. Could these over-ridden values (apart from password) not be displayed somewhere on the form?

πŸ› Bug report
Status

Active

Component

Code

Created by

πŸ‡³πŸ‡ΏNew Zealand patrickharris

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States IVNate

    @patrickharris

    I have exact same issue.

    1. configure smtp module via settings.php
    2. go to /admin/config/system/smtp
    3. send test email
    4. Receive "You must enter an SMTP server address" validation error.

    Two potential solutions:
    1. As you mention, move test form to a different tab/page.
    2. Change form validation so it recognizes fields that are set via config and do not validate them.

Production build 0.71.5 2024