* Fix bug #32423.
This commit is contained in:
@@ -1507,6 +1507,8 @@ class programplanModel extends model
|
||||
$startTasks = $this->dao->select('count(1) as count')->from(TABLE_TASK)->where('deleted')->eq(0)->andWhere('execution')->in($allChildren)->andWhere('consumed')->ne(0)->fetch('count');
|
||||
foreach($children as $childID => $childExecution) $statusCount[$childExecution->status] = empty($statusCount[$childExecution->status]) ? 1 : $statusCount[$childExecution->status] ++;
|
||||
|
||||
if(empty($statusCount)) continue;
|
||||
|
||||
if(isset($statusCount['wait']) and count($statusCount) == 1 and helper::isZeroDate($parent->realBegan) and $startTasks == 0)
|
||||
{
|
||||
if($parent->status != 'wait')
|
||||
|
||||
Reference in New Issue
Block a user