Details

      Description

      In many places we are using portletDisplay.getRootPortletId as a portleId to make a decision what portlet will be destroyed.
      String portletId = portletDisplay.getRootPortletId();

      var destroyInstance = function(event) \{
        if (event.portletId === '<%= portletId %>') \{
          try \{
            window['<%= name %>'].destroy();
          }
          catch (e) \{
          }
      
          Liferay.detach('destroyPortlet', destroyInstance);
        }
      };
      

      In case of instanceable portlets portletDisplay.getRootPortletId never match with current portlet id.

      This pattern is used in the following places, we need to check where places are struggled with this mistake:

      • end.jsp - portal-master/portal-web/docroot/html/taglib/aui/form

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                2 years, 15 weeks, 3 days ago

                Packages

                Version Package
                7.0.0 DXP FP30
                7.0.X EE
                7.0.4 CE GA5
                Master