-
Type:
Bug
-
Status: Closed
-
Resolution: Duplicate
-
Affects Version/s: 7.1.10 DXP GA1, 7.1.X, Master
-
Fix Version/s: None
-
Component/s: Forms
-
Labels:
-
Story Points:1
-
Fix Priority:4
-
Sprint:F&W Sprint 4, F&W Sprint 5
Summary
In the Japanese and Chinese localizations, a console error is thrown and strange UI behavior occurs when trying to add the Date element in Forms.
Steps to Reproduce
date-element-japanese.mp4
- Start up latest Master
- Sign in as test@liferay.com
- Under the "Liferay" site, go to Contents > Forms
- In Forms, click the
to add a new form
- Change the language to Chinese or Japanese by adding the locale code /ja or /zh to the URL (e.g. change English http://localhost:8080/group/guest/~/control_panel/manage?p_p_id=com_liferay_dynamic_data_mapping_form_web_portlet_DDMFormAdminPortlet to Japanese http://localhost:8080/ja/group/guest/~/control_panel/manage?p_p_id=com_liferay_dynamic_data_mapping_form_web_portlet_DDMFormAdminPortlet)
- Open up Chrome's developer panel, and look at the Console
- Click the
icon to add a new element
- Drag and drop "Date" which is 日付 (Japanese) or 日期 (Chinese) depending on the localization of your choice
Actual Behavior
Two date fields are added to the form, and the configuration panel does not even show up. An error is thrown at the console as well:
Expected Behavior
In Japanese/Chinese localizations, adding the Date element adds one calendar selector, with the configuration panel displaying properties relevant to the Date element. No errors are thrown.
Reproduced in
7.1.x Private Commit: 40d9e186b7f81ae2c027e7e89fdb1ad890d6eb9f
- duplicates
-
LPS-84653 Date field misbehaves when user language is Japanese
- Closed