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

Media Gallery comments do not update on the portlet refresh

    Details

    • Fix Priority:
      3

      Description

      When adding/editing/deleting a comment in the Media Gallery, the comments do not get refreshed until the page is refreshed. You expect the comments to be updated when you hit save.

      Add the following in /portal-web/docroot/html/portlet/image_gallery_display/view_images.jsp, just below the the line where it includes the image_action.jspf (

      <%@ include file="/html/portlet/image_gallery_display/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) Add "Media Gallery" portlet
      2) Add "Documents and Media" portlet
      3) Add images to the "Documents and Media" portlet
      4) Click configuration for the "Documents and Media" portlet and check Show Actions" and "Show Folder Menu" and save
      4) Click on one of the images in the "Media Gallery" portlet and you should see a preview with the ability to add comments below
      5) Click "Be the first" and add a commment
      6) The portlet should refresh, but the comment does not appear until you manually refresh the page. Same goes for editing and deleting comments

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sergio.gonzalez Sergio Gonzalez (Inactive)
                Reporter:
                jonathan.mak Jonathan Mak
                Participants of an Issue:
                Recent user:
                Esther Sanz
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  5 years, 34 weeks, 4 days ago

                  Packages

                  Version Package
                  6.2.0 CE GA1
                  6.2.X EE
                  7.0.0 M3