Closed (fixed)
Project:
Mailer Plus (DSM+)
Version:
1.3.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
2 Oct 2023 at 16:01 UTC
Updated:
9 Nov 2023 at 08:09 UTC
Jump to comment: Most recent
Comments
Comment #2
prudloff commentedNote that the label is already loaded without overrides on this page for example.
Comment #4
prudloff commentedComment #5
adamps commentedPlease let me check I understand. When mails get sent out from your site, by default they will use the override: 'mailhog'. If you look in GUI on the transport listing page, it reports that 'mailhog' is the default. However you think this is wrong, and that it should report the other transport?? Can you show any example in Core to confirm that this is correct?
Comment #6
prudloff commentedThe admin page allows editing config so it should always display the config that is being edited.
Here is an example of why this can be confusing: if I click "set as default" on another transport, nothing happens visually (mailhog is still displayed as default because of the override) but my config has changed. The page should reflect the config change.
It is explained here.
The core uses it for example in
GDToolkit::buildConfigurationForm()or inThemeExperimentalConfirmForm.#2910353: Prevent saving config entities when configuration overrides are applied also talks about preventing saving the configuration when it contains overrides.
#2408549: Display status message on configuration forms when there are overridden values also discusses the fact that core philosophy is that config forms don't display overrides (and suggests displaying the overrides in a warning message, not in the form itself).
Comment #7
adamps commentedThanks for explaining, that makes sense. It would be clearer for me if we copy how it's done in the docs you link to, so like this:
Comment #8
prudloff commentedThe config returned is never modified so I think you are right we can use
getOriginal()instead ofgetEditable().I updated the MR.
Comment #9
prudloff commentedComment #11
adamps commentedThanks
Comment #12
mishavantol commentedNow it is unclear the other way around. I was wondering why my local dev setting (mailhog) wasn't showing up in the transport overview. After all, the intention is to adjust the default_transport in a specific environment. Even more confusing is that the overwritten setting is used when sending the test email. So the overview says sendmail is the default, but we use mailhog as the default when sending.
Comment #13
mishavantol commentedNow it is unclear the other way around. I was wondering why my local dev setting (mailhog) wasn't showing up in the transport overview. After all, the intention is to change the default_transport in a specific environment. Even more confusing is that the overwritten setting is used when sending the test email. So the overview says sendmail is the default, but we use mailhog as the default when sending.
Comment #14
prudloff commentedWell, that is the behavior of most of the Drupal back-office when using overridden config.
This is why the config_override_warn module exists (until #2408549: Display status message on configuration forms when there are overridden values is fixed).