mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Fixes for task transitions: default transitions and setting scope in Workflow JS API
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10454 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -2,7 +2,7 @@ function main()
|
||||
{
|
||||
// Task ID
|
||||
var taskId = url.templateArgs.taskId;
|
||||
if ((taskId === undefined) || (taskId.length == 0))
|
||||
if (taskId === undefined)
|
||||
{
|
||||
status.setCode(status.STATUS_BAD_REQUEST, "TaskID missing when ending task.");
|
||||
return;
|
||||
@@ -20,7 +20,7 @@ function main()
|
||||
|
||||
// Optional Transition ID
|
||||
var transitionId = url.templateArgs.transitionId;
|
||||
if ((transitionId === undefined) || (transitionId.length == 0))
|
||||
if (transitionId === undefined)
|
||||
{
|
||||
transitionId = null;
|
||||
}
|
||||
|
Reference in New Issue
Block a user