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

Select Page button won't work on a Link to Page field when creating or editing a document of custom type

    Details

      Description

      Steps to reproduce

      1. Access Admin -> Content -> Documents and Medias
      2. Create a new Document Type with only a "link to page" field
      3. Create a new document
      4. Click on "Select Page" button

      Expected behavior

      A popup will open so that you can choose which page you want to have a link for.

      Current behavior

      6.2.x

      "Select Page" button won't work, the following error appears in the browser console:

      Uncaught TypeError: Cannot read property 'val' of null
          at y.getValue (?browserId=other&minifierType=&languageId=en_US&b=6210&t=1490077066000&/html/js/aui/aui-set/aui-set...:3)
          at y._openLinkToPageModal (?browserId=other&minifierType=&languageId=en_US&b=6210&t=1490077066000&/html/js/aui/aui-set/aui-set...:3)
          at y._handleSelectButtonClick (?browserId=other&minifierType=&languageId=en_US&b=6210&t=1490077066000&/html/js/aui/aui-set/aui-set...:3)
          at y._handleControlButtonsClick (?browserId=other&minifierType=&languageId=en_US&b=6210&t=1490077066000&/html/js/aui/aui-set/aui-set...:3)
          at c.Subscriber.f.notifySub [as _notify] (everything.jsp?browserId=other&themeId=controlpanel&colorSchemeId=01&minifierType=js&minifierBundle...:1)
          at c.Subscriber.notify (everything.jsp?browserId=other&themeId=controlpanel&colorSchemeId=01&minifierType=js&minifierBundle...:1)
          at c.CustomEvent._notify (everything.jsp?browserId=other&themeId=controlpanel&colorSchemeId=01&minifierType=js&minifierBundle...:1)
          at c.CustomEvent._procSubs (everything.jsp?browserId=other&themeId=controlpanel&colorSchemeId=01&minifierType=js&minifierBundle...:1)
          at c.CustomEvent.fireSimple (everything.jsp?browserId=other&themeId=controlpanel&colorSchemeId=01&minifierType=js&minifierBundle...:1)
          at c.CustomEvent._fire (everything.jsp?browserId=other&themeId=controlpanel&colorSchemeId=01&minifierType=js&minifierBundle...:1)
      getValue @ ?browserId=other&minifierType=&languageId=en_US&b=6210&t=1490077066000&/html/js/aui/aui-set/aui-set...:3
      _openLinkToPageModal @ ?browserId=other&minifierType=&languageId=en_US&b=6210&t=1490077066000&/html/js/aui/aui-set/aui-set...:3
      _handleSelectButtonClick @ ?browserId=other&minifierType=&languageId=en_US&b=6210&t=1490077066000&/html/js/aui/aui-set/aui-set...:3
      _handleControlButtonsClick @ ?browserId=other&minifierType=&languageId=en_US&b=6210&t=1490077066000&/html/js/aui/aui-set/aui-set...:3
      f.notifySub @ everything.jsp?browserId=other&themeId=controlpanel&colorSchemeId=01&minifierType=js&minifierBundle...:1
      notify @ everything.jsp?browserId=other&themeId=controlpanel&colorSchemeId=01&minifierType=js&minifierBundle...:1
      _notify @ everything.jsp?browserId=other&themeId=controlpanel&colorSchemeId=01&minifierType=js&minifierBundle...:1
      _procSubs @ everything.jsp?browserId=other&themeId=controlpanel&colorSchemeId=01&minifierType=js&minifierBundle...:1
      fireSimple @ everything.jsp?browserId=other&themeId=controlpanel&colorSchemeId=01&minifierType=js&minifierBundle...:1
      _fire @ everything.jsp?browserId=other&themeId=controlpanel&colorSchemeId=01&minifierType=js&minifierBundle...:1
      fire @ everything.jsp?browserId=other&themeId=controlpanel&colorSchemeId=01&minifierType=js&minifierBundle...:1
      E.fn @ everything.jsp?browserId=other&themeId=controlpanel&colorSchemeId=01&minifierType=js&minifierBundle...:1
      

      Master / ee-7.0.x

      Not reproducible (Commit 47562fd5c238a1945d56c49ac4bac23cf4eaa0c7)

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  2 years, 29 weeks, 1 day ago

                  Packages

                  Version Package
                  6.2.X EE