mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
ALF-20240: Fixed issue with non-localized task title in notification email
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@56401 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -129,22 +129,19 @@ public class TaskCreateListener implements TaskListener
|
||||
}
|
||||
|
||||
String title;
|
||||
if (taskFormKey != null)
|
||||
if (task.getName() != null)
|
||||
{
|
||||
title = taskFormKey.replace(":", "_");
|
||||
title = task.getName();
|
||||
}
|
||||
else
|
||||
{
|
||||
title = task.getName().replaceAll(" ", "_");
|
||||
title = taskFormKey.replace(":", "_");
|
||||
}
|
||||
|
||||
// Send email notification
|
||||
String workflowDefId = task.getProcessDefinitionId().split(":")[0];
|
||||
String taskType = workflowDefId + ".task." + title + ".title";
|
||||
|
||||
workflowNotificationUtils.sendWorkflowAssignedNotificationEMail(
|
||||
ActivitiConstants.ENGINE_ID + "$" + task.getId(),
|
||||
taskType,
|
||||
title,
|
||||
task.getDescription(),
|
||||
task.getDueDate(),
|
||||
Integer.valueOf(task.getPriority()),
|
||||
|
Reference in New Issue
Block a user