Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-81673

Cannot add Date field to Forms in Japanese and Chinese localizations

    Details

    • 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
    • Story Points:
      1
    • Fix Priority:
      4
    • Sprint:
      F&W Sprint 4, F&W Sprint 5

      Description

      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

      1. Start up latest Master
      2. Sign in as test@liferay.com
      3. Under the "Liferay" site, go to Contents > Forms
      4. In Forms, click the to add a new form
      5. 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)
      6. Open up Chrome's developer panel, and look at the Console
      7. Click the icon to add a new element
      8. 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

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  2 years, 1 week, 3 days ago

                  Packages

                  Version Package