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
    • Similar Issues:
      Show 5 results 

      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.

        Activity

        Hide
        Ginson Ren added a comment -

        PASSED Manual Testing following the steps in the description.

        Reproduced on:
        Tomcat 7.0 + MySQL 5. Portal 6.1.20 EE GA2.

        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.

        Fixed on:
        Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: 1a1b10cfa672378d25f834c24baf5c469ce5ae0d.

        The calendar widget will show and there is no error in the JS console.

        Show
        Ginson Ren added a comment - PASSED Manual Testing following the steps in the description. Reproduced on: Tomcat 7.0 + MySQL 5. Portal 6.1.20 EE GA2. 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. Fixed on: Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: 1a1b10cfa672378d25f834c24baf5c469ce5ae0d. The calendar widget will show and there is no error in the JS console.
        Hide
        Ginson Ren added a comment -

        Fixed on:

        Tomcat 7.0 + MySQL 5. Portal 6.1.x EE GIT ID: 87ae43620ca49ea7a12f1817acba04458946f9c3.

        The calendar widget will show and there is no error in the JS console.

        Show
        Ginson Ren added a comment - Fixed on: Tomcat 7.0 + MySQL 5. Portal 6.1.x EE GIT ID: 87ae43620ca49ea7a12f1817acba04458946f9c3. The calendar widget will show and there is no error in the JS console.

          People

          • Assignee:
            Ginson Ren
            Reporter:
            Laszlo Csontos
            Recent user:
            Esther Sanz
            Participants of an Issue:
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Days since last comment:
              2 years, 11 weeks, 5 days ago

              Development

                Structure Helper Panel