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

Language Portlet - Found 2 elements with non-unique id

    Details

      Description

      Language portlet creates 2 DOM elements with the same Id.

       

      Step to reproduce:

       

      1. Edit Configuration for Language Portlet
      2. Change the Display Template to Select Box
      3. Save and leave configuration

       

      Expected Behaviour :

                  You should see the Language protlet with a Select box

      Actual:

                  You see the Language portlet with the select box, but the following error appears in browser console:

       

      [DOM] Found 2 elements with non-unique id #_com_liferay_site_navigation_language_web_portlet_SiteNavigationLanguagePortlet_fm
      <select class="form-control" id="_com_liferay_site_navigation_language_web_portlet_SiteNavigationLanguagePortlet_fm" name="languageId" onchange="_com_liferay_site_navigation_language_web_portlet_SiteNavigationLanguagePortlet_changeLanguage();" title="Language (Changing the value of this field reloads the page.)">...</select>

      <form action="/c/portal/update_language?p_l_id=302018&redirect=%2Fweb%2Farena" class="form " data-fm-namespace id="_com_liferay_site_navigation_language_web_portlet_SiteNavigationLanguagePortlet_fm" method="post" name="_com_liferay_site_navigation_language_web_portlet_SiteNavigationLanguagePortlet_fm">...</form>

        Attachments

          Activity

            People

            Assignee:
            sylvia.luan Sylvia Luan
            Reporter:
            wos7591 Wojciech Syski
            Participants of an Issue:
            Recent user:
            Sylvia Luan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              3 years, 8 weeks, 6 days ago

                Packages

                Version Package