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

Control panel title displays static portlet title even when another portlet is active

    Details

    • Fix Priority:
      3

      Description

      Creating this issue based on email exchange with Aldo De Vleeschauwer:

      With the SAML plugin installed, the title of the Browser when in any Control Panel page becomes "SAML Keep Alive ...". This appears to be caused by specific logic for Control Panel which takes the name of the Portlet that was last included, in render_portlet.jsp. In this case it is always the SAML portlet through "layout.static.portlets.all". We have fixed as follows:

      if ((layout.isTypePanel() || layout.isTypeControlPanel()) && !portletDisplay.getId().equals(PortletKeys.CONTROL_PANEL_MENU)) {
      
          // Aldo - Check if this is a statically added portlet
          boolean setTitle = true;
          for (String staticPortletId : PropsValues.LAYOUT_STATIC_PORTLETS_ALL) {
      	    if (portletId.equals(staticPortletId)) {
      	        setTitle = false;
      	        break;
      	    }
          }
      
          if (setTitle) {
              PortalUtil.setPageTitle(portletDisplay.getTitle(), request);
          }
      }

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mika.koivisto Mika Koivisto
              Reporter:
              mika.koivisto Mika Koivisto
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                7 years, 33 weeks, 4 days ago

                  Packages

                  Version Package
                  6.1.X EE
                  6.2.0 CE GA1