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

Discussion tag - Message parentMessageId is undefined

    Details

      Description

      Discussion tag - Message parentMessageId is undefined

      Steps to replicate:

      • added the following in the image_gallery_display/view_images.jspf, just below the the line where it includes the image_action.jspf.

      <liferay-ui:panel cssClass="lfr-document-library-comments" collapsible="<%= true %>" extended="<%= true %>" persistState="<%= true %>" title="comments">
      <portlet:actionURL var="discussionURL">
      <portlet:param name="struts_action" value="/document_library/edit_file_entry_discussion" />
      </portlet:actionURL>

      <liferay-ui:discussion
      className="<%= DLFileEntryConstants.getClassName() %>"
      classPK="<%= fileEntry.getFileEntryId() %>"
      formAction="<%= discussionURL %>"
      formName="fm3"
      ratingsEnabled="<%= true %>"
      redirect="<%= currentURL %>"
      subject="<%= fileEntry.getTitle() %>"
      userId="<%= fileEntry.getUserId() %>"
      />
      </liferay-ui:panel>

      1. Start liferay, add media gallery portlet.
      2. Click configuration, flag show actions and show folder menu. save it.
      3. Click add media, add a basic document.
      4. Click the document, click Be the first.
      Able to display the GUI correctly. Can type comments or Cancel, but I cannot actually Reply/Post/Save the comment. Clicked on Reply, the Error Console in Firefox displays:

      document._31.fm3._31_parentMessageId0 is undefined.

      Comments that have been placed using the Document and Media Library portlet are shown.

      I think is a bug with the assumption that I could reuse the discussion tag in this manner.

      http://www.liferay.com/community/forums/-/message_boards/message/12445908

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              brian.chan Brian Chan
              Reporter:
              stanm Stan X
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                8 years, 9 weeks, 5 days ago

                  Packages

                  Version Package
                  6.1.X EE
                  6.2.0 CE B2