fixing problem in the tasks TREE, when there are no tasks in the process

This commit is contained in:
Fernando Ontiveros
2011-02-24 05:25:32 +00:00
parent e1101560e9
commit 51f9e2240c

View File

@@ -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;