Fixed Task Numbering Issue. Now,Task Number is taken from Old Processmaker

This commit is contained in:
girish
2011-02-03 09:25:30 +00:00
parent 3df8199d64
commit 1a5ea754ec
3 changed files with 98 additions and 119 deletions

View File

@@ -443,9 +443,7 @@ Ext.onReady ( function() {
var yOffset = workflow.getAbsoluteY();
if(data.name == 'bpmnTask')
{
count = ++workflow.taskNo; //Incrementing Task No and assigning it to a local variable
workflow.boundaryEvent = false;
workflow.taskName = 'Task '+count;
}
@@ -463,7 +461,7 @@ Ext.onReady ( function() {
{
NewShape.actiontype = 'addTask';
workflow.saveShape(NewShape); //Saving Annotations when user drags and drops it
NewShape.taskName = workflow.taskName;
// NewShape.taskName = workflow.taskName;
}
@@ -684,7 +682,7 @@ Ext.onReady ( function() {
break;
}
}
if(typeof(workflow.taskNo) != 'undefined')
if(typeof(workflow.taskNo) != 'undefined' && workflow.taskNo != 0)
workflow.taskNo++;
return shapes;
}