* Fix bug #29031,#29042,#29039.
This commit is contained in:
@@ -1189,9 +1189,10 @@ class executionModel extends model
|
||||
->andWhere('t2.type')->eq('stage')
|
||||
->andWhere('t2.grade')->eq(1)
|
||||
->andWhere('t2.deleted')->eq(0)
|
||||
->andWhere('t2.parent')->eq($oldExecution)
|
||||
->andWhere('t2.parent')->eq($oldExecution->id)
|
||||
->fetch('total');
|
||||
|
||||
if(!$oldPercentTotal) $oldPercentTotal = 0;
|
||||
if($type == 'create') $percentTotal = $percent + $oldPercentTotal;
|
||||
if(!empty($oldExecution) and $oldExecution->grade == 1) $percentTotal = $oldPercentTotal - $oldExecution->percent + $this->post->percent;
|
||||
|
||||
@@ -4713,7 +4714,11 @@ class executionModel extends model
|
||||
|
||||
if(!empty($execution->children))
|
||||
{
|
||||
foreach($execution->children as $child) $this->printNestedList($child, true, $users, $productID);
|
||||
foreach($execution->children as $child)
|
||||
{
|
||||
$child->division = $execution->division;
|
||||
$this->printNestedList($child, true, $users, $productID);
|
||||
}
|
||||
}
|
||||
|
||||
if(!empty($execution->tasks))
|
||||
|
||||
Reference in New Issue
Block a user