You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following PR fixes this issue, but I'm not sure about the side effects. The key code is ThemePlugin::saveOption(). In previous versions, it looked like this:
This worked because site-level theme options passed a $contextId of 0. In 3.5, they now pass null, so $context->getId() gets called without a context. This PR fixes this by checking if there is a request context. However, there is no way to know if null was passed to the function deliberately. In other words, there is no way to save a site-level theme option from a request with a context.
(This is probably bad practice anyway, though I can imagine some unusual use cases, like letting a journal manager self-select an option that is then compiled into an array of all journals that is saved at the site level.)
Describe the bug
A fatal error is encountered when saving a theme option at the site level.
To Reproduce
Steps to reproduce the behavior:
What application are you using?
main
branch (3.5 pre-release)Additional information
Error message:
The text was updated successfully, but these errors were encountered: