Skip to Content
Former Member
Feb 07, 2019 at 10:15 AM

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


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