mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Fix to (unreported?) issue where the details page for the wrong node would be shown after pressing Close in Multilingual Dialog.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@12697 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -74,6 +74,7 @@ import org.alfresco.web.app.context.UIContextService;
|
||||
import org.alfresco.web.app.servlet.DownloadContentServlet;
|
||||
import org.alfresco.web.app.servlet.FacesHelper;
|
||||
import org.alfresco.web.bean.content.DocumentDetailsDialog;
|
||||
import org.alfresco.web.bean.ml.MultilingualManageDialog;
|
||||
import org.alfresco.web.bean.repository.MapNode;
|
||||
import org.alfresco.web.bean.repository.Node;
|
||||
import org.alfresco.web.bean.repository.NodePropertyResolver;
|
||||
@@ -1764,9 +1765,12 @@ public class BrowseBean implements IContextListener, Serializable
|
||||
|
||||
NodeRef translation = new NodeRef(Repository.getStoreRef(), id);
|
||||
|
||||
// remember the bean from wich the action comes
|
||||
DocumentDetailsDialog docDetails = (DocumentDetailsDialog)FacesContext.getCurrentInstance().getExternalContext().getSessionMap().get("DocumentDetailsDialog");
|
||||
// remember the bean from which the action comes
|
||||
FacesContext fc = FacesContext.getCurrentInstance();
|
||||
DocumentDetailsDialog docDetails = (DocumentDetailsDialog)FacesHelper.getManagedBean(fc, "DocumentDetailsDialog");
|
||||
docDetails.setTranslationDocument(new MapNode(translation));
|
||||
MultilingualManageDialog mmDialog = (MultilingualManageDialog)FacesHelper.getManagedBean(fc, "MultilingualManageDialog");
|
||||
mmDialog.setTranslationDocument(docDetails.getTranslationDocument());
|
||||
|
||||
// set the ml container as the current document
|
||||
NodeRef mlContainer = getMultilingualContentService().getTranslationContainer(translation);
|
||||
|
Reference in New Issue
Block a user