Problem/Motivation
Follow up from #3201472: Clarify via the field description that the notification email address is used for the reply-to address, not the from address
We don't have a default value for mail_notification in system.site, this feels like it breaks our standard contract for config objects, it should at least be null I think. I want to ask @alexpott about this. It will likely mean a follow-up issue.
Originally caused by #494518: Allow for custom user registration approval email address.
Steps to reproduce
NA
Proposed resolution
Add default value NULL for mail_notification in site.system config
Remaining tasks
Research
User interface changes
NA
API changes
NA
Data model changes
NA
Release notes snippet
TBD
Issue fork drupal-3342489
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:
- 3342489-add-default-value
changes, plain diff MR !5163
Comments
Comment #5
_shyOkay, the tests are passed. Let's see if the changes will fit.
Comment #6
smustgrave commentedThanks! But will need an upgrade path for existing sites.
Comment #7
_shyAll tests are passed.
Comment #8
smustgrave commentedThanks! But think in the update we should check if the value is set first. This current update could undo someones setting. So if the value is set we can leave alone, if not set a default.
Comment #9
_shyThanks for noticing that. You are totally right @smustgrave, I just missed that thing. That's why I don't like to work at night ;)
Let's check if the tests will pass.
Comment #10
smustgrave commentedTests are all green.
Comment #11
_shyHi.
Are more changes needed here?
Comment #12
longwaveComment #13
_shyFixed changes after the last comment. All tests are passed.
But, I don't know why it shows so many changes, I just pulled changes from the 11.x branch.
Comment #14
_shyOk, now it looks better =)
Comment #15
smustgrave commentedFeedback and moving to system post_update hook seems to have been addressed.
Comment #16
_shyUpdated MR.
Comment #17
longwaveComment #18
_shyComment #19
smustgrave commentedFixed the issue summary to not include TBD and NA for proposed solution.
Comment #20
wim leersThis was previously missed in #2379683: Fix configuration schema issues in contact (indirectly user and system) modules and originally introduced in #494518: Allow for custom user registration approval email address.
I ran into this same problem in #3364108: Configuration schema & required keys.
MR looks great, confirming RTBC 👍
Comment #22
longwaveCommitted 4f633dc and pushed to 11.x. Thanks!
Not backportable due to the update hook.