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

Date Picker component has JS issues when used from Custom Fields which have special characters in its names

    Details

    • Branch Version/s:
      6.1.x
    • Backported to Branch:
      Committed
    • Story Points:
      3
    • Fix Priority:
      4

      Description

      There is an issue when using (Date) Custom Fields for Web content and the field's name contains space character. The issue is when you are filling in the date on a custom field the date picker does not function.

      Steps to reproduce:
      1. Go to Control Panel -> Custom Fields
      2. Click on the Web Content item on the list
      3. Add custom field
        • Key -> "Event 1 Start Date"
        • Type -> Date
        • Save it.
      4. Go to Control Panel -> Web Content
        • Add (Basic web content)
        • Fill the title
        • Click on the Custom fields at the right side of the page
        • Now you can see the previously created custom field
      5. Click on the date picker icon

      Observed behavior: The calendar widget is not shown and you are getting "Uncaught TypeError: Cannot call method 'get' of null " at aui-datepicker-select.js in the JS console.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ginson.ren Ginson Ren
                Reporter:
                laszlo.csontos Laszlo Csontos (Inactive)
                Participants of an Issue:
                Recent user:
                Esther Sanz
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  4 years, 24 weeks, 3 days ago