-
Bug
-
Resolution: Won't Do
-
Neutral
-
None
-
5.3.7
-
None
Hello Magnolians,
when I want to retrieve a MultiValueField property from a node in a language other than the default one the I18nContentWrapper fails to deliver it.
I attached the freemarker script and screenshots from the JCR Browser and the dialog configuration.
It seems that the Problem is caused by the isEmpty() Method in I18nContentWrapper:398. It checks only for String Value and not for Values[].
To reproduce:
Node contentNode = contentMap.getJCRNode();
Value[] values = contentNode.getProperty("seminars").getValues();
if the language is not the default one and the property "seminars_fr" exists an exception is thrown by the isEmpty() method.
I wrote a workaround in a model class that works, but it s not nice because I do what the I18nNodeWrapper should do. (See attached file)