Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Email::getDefaultFrom() needs to account for array config #10257

Closed
5 tasks done
emteknetnz opened this issue Mar 9, 2022 · 1 comment
Closed
5 tasks done

Email::getDefaultFrom() needs to account for array config #10257

emteknetnz opened this issue Mar 9, 2022 · 1 comment

Comments

@emteknetnz
Copy link
Member

emteknetnz commented Mar 9, 2022

admin_email can be either a string or an array
https://docs.silverstripe.org/en/4/developer_guides/email/#administrator-emails

This recent PR only accounted for the string config, but not the array config

Currently if array config is encountered, trying to reset a members password will throw a hard error

ACs

  • Handle array config
  • Tag a new version of 4.9
  • Tag a new version of 4.10
  • Ensure the extension hook $this->extend('updateDefaultFrom', $defaultFrom); only appears in the 4 branch

PRs

@emteknetnz
Copy link
Member Author

Linked PR has been merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant