cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Fallback language for localized collection's attribute doesn't work correctly

Former Member
0 Likes
1,143

We have a field in Hybris model configured as String localized collection like :


 <attribute qualifier="xyz" type="localized:StringCollection">
     <modifiers optional="true" read="true" write="true" />
     <persistence type="property" />

In such case Hybris fallback strategy doesn't work correctly . Only the session language is taken into consideration. If a localization doesn't exist for the given language the result will be empty even it has the fallback localization. Somebody knows is it Hybris issue(or feature 🙂 ) or something wrong with the model configuration. As workaround is to create custom attribute handler . But possibly exists more "pretty" solution

Accepted Solutions (0)

Answers (1)

Answers (1)

arvind-kumar_avinash
Active Contributor
0 Likes

In this situation, I recommend using a relation instead of StringCollection. You will have much more flexibility as well as you will get rid of this fallback language issue.

Helpful reading - https://help.hybris.com/1811/hcd/8c755da8866910149c27ec908fc577ef.html#typesystemdocumentation-1nrel...

arvind-kumar_avinash
Active Contributor
0 Likes

Hi - did it help?