mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged V2.2 to HEAD
10982: Merged V2.1 to V2.2 10273: Fix for ETWOONE-317: Error from regenerate renditions wizard when templates are updated 10985: Merged V2.1 to V2.2 10717: Fix for ETWOONE-14: System Error message appears while clicking 'Manage Task' icon in ... 10742: Fix for ETWOONE-119: A user created with space characters at the begin and at the end can't login 10758: Fix for ETWOONE-183: URL addressability of forum spaces and topics 10760: Fix for ETWOONE-339: URL Addressability to discussions causes display issue 10761: Fix for ETWOONE-196: Attempt to post to the same forum by two or more users simultaneously leads to error appearance and impossibility to post for some of them 10772: Fix for ETWOONE-225: Validation.js does not properly handle trailing whitespace 10986: Added Hibernate src to Eclipse project 11004: Remove annoying exceptions on shutdown 11005: Minor javadoc fix 11012: Fixed ETWOTWO-423: Optionally inject the Open Office document converter instance to the transformer git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@11202 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -32,6 +32,7 @@ import javax.faces.context.FacesContext;
|
||||
import javax.faces.context.ResponseWriter;
|
||||
import javax.faces.el.ValueBinding;
|
||||
|
||||
import org.alfresco.service.cmr.repository.NodeService;
|
||||
import org.alfresco.service.cmr.workflow.WorkflowInstance;
|
||||
import org.alfresco.web.app.Application;
|
||||
import org.alfresco.web.bean.repository.Repository;
|
||||
@@ -120,10 +121,20 @@ public class UIWorkflowSummary extends SelfRenderingComponent
|
||||
out.write("</td></tr><tr><td>");
|
||||
out.write(bundle.getString("initiated_by"));
|
||||
out.write(":</td><td>");
|
||||
NodeService nodeService = getNodeService(context);
|
||||
if (wi.initiator != null)
|
||||
{
|
||||
out.write(Utils.encode(User.getFullName(Repository.getServiceRegistry(
|
||||
context).getNodeService(), wi.initiator)));
|
||||
if (nodeService.exists(wi.initiator))
|
||||
{
|
||||
out.write(Utils.encode(User.getFullName(Repository.getServiceRegistry(
|
||||
context).getNodeService(), wi.initiator)));
|
||||
}
|
||||
else
|
||||
{
|
||||
out.write("<");
|
||||
out.write(bundle.getString("unknown"));
|
||||
out.write(">");
|
||||
}
|
||||
}
|
||||
out.write("</td></tr><tr><td>");
|
||||
out.write(bundle.getString("started_on"));
|
||||
@@ -189,4 +200,9 @@ public class UIWorkflowSummary extends SelfRenderingComponent
|
||||
{
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
private NodeService getNodeService(FacesContext fc)
|
||||
{
|
||||
return Repository.getServiceRegistry(fc).getNodeService();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user