mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Fix for ALFCOM-2306
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@12692 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -38,7 +38,6 @@ import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
import javax.faces.context.FacesContext;
|
||||
import javax.faces.context.ResponseWriter;
|
||||
import javax.faces.event.ActionEvent;
|
||||
import javax.transaction.UserTransaction;
|
||||
|
||||
@@ -46,7 +45,7 @@ import org.alfresco.config.Config;
|
||||
import org.alfresco.config.ConfigElement;
|
||||
import org.alfresco.config.ConfigService;
|
||||
import org.alfresco.model.ApplicationModel;
|
||||
import org.alfresco.model.ContentModel;
|
||||
import org.alfresco.model.ContentModel;
|
||||
import org.alfresco.repo.search.SearcherException;
|
||||
import org.alfresco.repo.site.SiteModel;
|
||||
import org.alfresco.repo.web.scripts.FileTypeImageUtils;
|
||||
@@ -1728,7 +1727,7 @@ public class BrowseBean implements IContextListener, Serializable
|
||||
Node node = getActionSpace();
|
||||
if (node != null)
|
||||
{
|
||||
FacesContext fc = FacesContext.getCurrentInstance();
|
||||
FacesContext fc = FacesContext.getCurrentInstance();
|
||||
NodeRef companyRootRef = new NodeRef(Repository.getStoreRef(), Application.getCompanyRootId(fc));
|
||||
if (node.getNodeRef().equals(companyRootRef))
|
||||
{
|
||||
@@ -1767,13 +1766,13 @@ public class BrowseBean implements IContextListener, Serializable
|
||||
|
||||
// remember the bean from wich the action comes
|
||||
DocumentDetailsDialog docDetails = (DocumentDetailsDialog)FacesContext.getCurrentInstance().getExternalContext().getSessionMap().get("DocumentDetailsDialog");
|
||||
docDetails.setTranslationDocument(new Node(translation));
|
||||
docDetails.setTranslationDocument(new MapNode(translation));
|
||||
|
||||
// set the ml container as the current document
|
||||
NodeRef mlContainer = getMultilingualContentService().getTranslationContainer(translation);
|
||||
|
||||
setupContentAction(mlContainer.getId(), true);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Public helper to setup action pages with content context
|
||||
|
Reference in New Issue
Block a user