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

Asset Publisher's Edit Functionality for Message Board posts not working properly




      When displaying Message Board posts, the Asset Publisher portlet provides a functionality to edit to the Message Board posts. However, this functionality is not working as expected and is causing errors to be thrown in the logs. 

      Steps to Reproduce

      1. Start Liferay and sign in as an admin user
      2. On the home page, add a Message Board portlet and an Asset Publisher portlet
      3. In the Message Board portlet, create a new thread and add a reply to the thread as well
      4. In the Asset Publisher portlet, navigate to the Configuration settings and set the following:

      • Asset Selection: Dynamic
      • Source > Asset Type: Message Boards Message
        5. See that the Asset Publisher portlet now displays the thread's original post and the reply
        6. Click on the pencil button icon next to the reply
        7. The user is led to another page that says "Replying to"

       Expected Behavior: The user is able to edit to the Message Board post successfully.

       Actual Behavior: When the user clicks 'Publish,' nothing happens. The user also sees the following browser error in the console:

      liferay-amd-loader | A require() call has failed but no failure handler was provided. Note that even if the call stack of this error trace looks like coming from the Liferay AMD Loader, it is not an error in the Loader what has caused it, but an error caused by the require() call. The reason why the Loader is in the stack trace is because it is printing the error so that it doesn't get lost. However, we recommend providing a failure handler in all require() calls to be able to recover from errors better and to avoid the appearance of this message. Some information about the require() call follows: · Require call id: 6 · Required modules: Array(5) [ "metal-dom/src/all/dom", "metal-position/src/Position", "metal-dom/src/dom", "[email protected]/message_boards/js/MBPortlet.es", "clay-dropdown/src/ClayDropdown" ] · Missing modules: (n/a) · Stack trace of the require() call: [email protected]://localhost:8080/o/frontend-js-web/loader/loader.js:1:5898 @http://localhost:8080/group/guest/~/control_panel/manage?p_p_id=com_liferay_message_boards_web_portlet_MBPortlet&p_p_lifecycle=0&p_p_state=normal&p_p_mode=view&refererPlid=2&_com_liferay_message_boards_web_portlet_MBPortlet_mvcRenderCommandName=%2Fmessage_boards%2Fedit_message&_com_liferay_message_boards_web_portlet_MBPortlet_messageId=37501&_com_liferay_message_boards_web_portlet_MBPortlet_redirect=%2F&_com_liferay_message_boards_web_portlet_MBPortlet_referringPortletResource=com_liferay_asset_publisher_web_portlet_AssetPublisherPortlet_INSTANCE_W73yhFnfUvHH&_com_liferay_message_boards_web_portlet_MBPortlet_portletResource=com_liferay_asset_publisher_web_portlet_AssetPublisherPortlet&p_p_auth=VhiNtIvA line 53 > injectedScript:157:16 [email protected]://localhost:8080/o/js/resolved-module/[email protected]/lib/globalEval.js?languageId=en_US:53:20 [email protected]://localhost:8080/o/js/resolved-module/[email protected]/lib/globalEval.js?languageId=en_US:116:24 [email protected]://localhost:8080/o/js/resolved-module/[email protected]/lib/globalEval.js?languageId=en_US:153:16 runScriptsInOrder/<@http://localhost:8080/o/js/resolved-module/[email protected]/lib/globalEval.js?languageId=en_US:155:18 [email protected]://localhost:8080/o/js/resolved-module/[email protected]/lib/globalEval.js?languageId=en_US:105:19 async.nextTick.getSetImmediateEmulator_/[email protected]://localhost:8080/o/js/resolved-module/[email protected]/lib/async/async.js?languageId=en_US:196:5 Error: The following problems where detected while resolving modules: · Missing required module '[email protected]/message_boards/js/MBPortlet.es'    value loader.js:440    value loader.js:284

      72x hash: 18e05bcb1c459733173f265d00d1488f549c3897


          Issue Links



              yang.cao Yang Cao
              noor.najjar Noor Najjar
              Participants of an Issue:
              Recent user:
              Yunlin "Steven" Sun
              Engineering Assignee:
              Noor Najjar
              0 Vote for this issue
              0 Start watching this issue


                Days since last comment:
                1 year, 6 days ago


                  Version Package
                  7.2.10 DXP FP9