-
Bug
-
Resolution: Fixed
-
Critical
-
None
-
None
in method info.magnolia.editor.block.jcr.MultiJcrBlockEntryResolution#getBlocksByLocale
only language part of locale is taken into account when filtering nodes. If we are using locale with country part set, filtering doesn't work properly.
boolean matchSubLocale = StringUtils.endsWith(name, "_" + locale.getLanguage());
I guess we should change this line with something like:
boolean matchSubLocale = StringUtils.endsWith(name, "_" + locale.toString());
module version 2.1.3
Steps to reproduce:
- Update language from site to DE e.g: /travel/i18n/locales/de@language
- Edit a story
> switch language to german > click on Copy blocks from English> provide value for required fields -> save
Expected results: - Has block values for both languages
Actual result: - There's no value when switching to for German
Acceptance criteria
There are no Sub-Tasks for this issue.