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

Custom Field Geolocation with spaces in the name causes an Uncaught DOMException

    Details

      Description

      Custom Field Geolocation with spaces in the name causes the following JS error:

      Uncaught DOMException: Failed to execute 'querySelector' on 'Document': '#_com_liferay_users_admin_web_portlet_UsersAdminPortlet_ExpandoAttribute----Geolocation 1--Map' is not a valid selector.
      at toElement
      

      Steps to reproduce

      1. Add a Geolocation custom field to a User resource
      2. Add a new User
      3. Navigate to that User.
      4. Assert JS error and the map does not render

      Reproduced on

      Tomcat 9.0.17 + MySQL 5.7.19. Portal master GIT ID: e165636dd9f782a11430db53304111cb9626bc4e.

      Tomcat 9.0.6 + MySQL 5.7.19. DXP 7.1.10 GA1.

        Attachments

          Activity

            People

            • Assignee:
              randolph.do Randolph Do (Inactive)
              Reporter:
              albert.lee Albert Lee
              Participants of an Issue:
              Recent user:
              Randolph Do (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                25 weeks ago

                Packages

                Version Package
                Master