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
getSourceLocale() is supposed to give you the locale which the content is coming from for a specific model but it doesn't take into account locale inheritance mode which is a model level setting.
How to reproduce
Apply INHERITANCE_MODE_EXACT to a model (for example a campaign page). Let's assume this test setup:
English locale (global default)
German locale (falls back to English locale)
test page is localised only in English locale
check the source locale for this page in German locale
Expected source locale
null (no source)
Actual source locale
English locale
Validations
Check that there isn't already an issue that reports the same bug
Double check that your reproduction steps work in a fresh installation of silverstripe/installer (with any code examples you've provided)
Module version(s) affected
7
Description
getSourceLocale()
is supposed to give you the locale which the content is coming from for a specific model but it doesn't take into account locale inheritance mode which is a model level setting.How to reproduce
Apply
INHERITANCE_MODE_EXACT
to a model (for example a campaign page). Let's assume this test setup:Expected source locale
null
(no source)Actual source locale
English locale
Validations
silverstripe/installer
(with any code examples you've provided)PRs
The text was updated successfully, but these errors were encountered: