September 16
Ken Sperow kommentierte LPS-67458.
10:44 Debugging the resource browser within the browsers developer's tools. It appears that browser.html makes an asynchronous call to "GetFoldersAndFiles" with the following sURL: /c/portal/fckeditor?p_p_id=15&Command=GetFoldersAndFiles&Type=Document&SortType=Title&Ascending=true&CurrentFolder=%2F&uuid=1473977114889 {code} if ( callBackFunction ) oXML.LoadUrl( sUrl, callBackFunction ) ; // Asynchronous load. else return oXML.LoadUrl( sUrl ) ; {code} If you trace this down further GetFoldersAndFilesCommand ends up calling DocumentCommandReceiver and within the getRootFolders method it does the following: {code} if (group.hasStagingGroup()) { Group stagingGroup = group.getStagingGroup(); if ((stagingGroup.getGroupId() == doAsGroupId) && group.isStagedPortlet(portletId) && !group.isStagedRemotely() && isStagedData(group)) { groupId = stagingGroup.getGroupId(); descriptiveName = stagingGroup.getDescriptiveName(); } } {code} The code knows that the staged group is staged but it fails to go into the second if block because "doAsGroupId" is zero. The root cause is that the sURL passed in from browser.html doesn't include the "doAsGroupId" that is passed into it as a parameter. I fixed this issue by hooking: custom_jsps/html/js/editor/ckeditor/editor/filemanager/browser/liferay/browser.html. Here are the fairly simple additions needed: {code} 150,158d149 < // KS - need to pass the doAsGroupId if it exists < var doAsGroupIdParam = GetUrlParam( 'doAsGroupId' ) ; < < if (doAsGroupIdParam) { < sUrl += '&doAsGroupId=' + doAsGroupIdParam ; < } {code}
September 15
Ken Sperow kommentierte LPS-53909.
August 19
Ken Sperow kommentierte LPS-67458.
August 3
Ken Sperow fügte LPS-67458 hinzu.
Ken Sperow fügte LPS-67457 hinzu.
März 31
Ken Sperow hat auf die Nachricht von Sameer Naik im Forum geantwortet, in Liferay.com.
März 17
Ken Sperow hat auf die Nachricht von Jitendra Rajput im Forum geantwortet, in Liferay.com.
Oktober 28
Ken Sperow kommentierte LPS-49447.
Oktober 27
Ken Sperow kommentierte LPS-49447.
Ken Sperow kommentierte LPS-49447.
Die Aktivitäten von Ken Sperow abonnieren. (Öffnet neues Fenster)