ALF-18332 : WorkflowObjectFactory.createTransition doesn't use the description property

- Fixed default description key for transition + added testcase
   - merged from DEV/HEAD_WROKFLOW to 5.2.N

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@131924 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Andrei Rebegea
2016-11-01 09:07:52 +00:00
parent 8772f948d9
commit 1e97c7c275
3 changed files with 77 additions and 2 deletions

View File

@@ -209,7 +209,7 @@ public class WorkflowObjectFactory
boolean isDefault, String... baseLabelKeys)
{
String title = getLabel(baseLabelKeys, TITLE_LABEL, defaultTitle);
String description = getLabel(baseLabelKeys, TITLE_LABEL, defaultDescription);
String description = getLabel(baseLabelKeys, DESC_LABEL, defaultDescription);
return new WorkflowTransition(id, title, description, isDefault);
}