fixing problem in the tasks TREE, when there are no tasks in the process
This commit is contained in:
@@ -282,7 +282,7 @@ class Ajax
|
||||
|
||||
$rootNode->id = $process->getProUid();
|
||||
$rootNode->text = $process->getProTitle();
|
||||
$rootNode->leaf = false;
|
||||
$rootNode->leaf = count($tasksList) > 0 ? false : true;
|
||||
$rootNode->expanded =true;
|
||||
foreach($tasksList as $task) {
|
||||
$node = new stdClass;
|
||||
|
||||
Reference in New Issue
Block a user