* Finish task #85459.
This commit is contained in:
@@ -222,7 +222,7 @@ function renderExecutionItem(item, $item)
|
||||
|
||||
if(!$title.length)
|
||||
{
|
||||
if((item.type == 'kanban' && window.userPrivs.kanban) || (item.type != 'kanban' && window.userPrivs.execution))
|
||||
if(!item.hasOwnProperty('children') && ((item.type == 'kanban' && window.userPrivs.kanban) || (item.type != 'kanban' && window.userPrivs.execution)))
|
||||
{
|
||||
var method = item.type == 'kanban' ? 'kanban' : 'task';
|
||||
|
||||
|
||||
@@ -2812,7 +2812,7 @@ class execution extends control
|
||||
{
|
||||
$this->loadModel('project');
|
||||
$projects = $this->project->getPairsByProgram('', 'noclosed');
|
||||
$executions = $this->execution->getStatData(0, 'all', 0, 0, false, '', 'id_desc');
|
||||
$executions = $this->execution->getStatData(0, 'all', 0, 0, false, 'withchild', 'id_desc');
|
||||
|
||||
foreach($executions as $execution)
|
||||
{
|
||||
|
||||
@@ -2042,7 +2042,11 @@ class executionModel extends model
|
||||
}
|
||||
}
|
||||
|
||||
foreach($childList as $childID) unset($executions[$childID]);
|
||||
if(strpos($param, 'withchild') === false)
|
||||
{
|
||||
foreach($childList as $childID) unset($executions[$childID]);
|
||||
}
|
||||
|
||||
foreach($parentList as $parentID) unset($executions[$parentID]);
|
||||
|
||||
return array_values($executions);
|
||||
|
||||
Reference in New Issue
Block a user