* Fix bug.

This commit is contained in:
leiyong
2021-02-03 10:47:32 +08:00
parent 64bf0d2ba5
commit 0d51f3cb7e
2 changed files with 3 additions and 7 deletions
+2
View File
@@ -286,12 +286,14 @@ class my extends control
/* Get tasks. */
$tasks = $this->loadModel('task')->getUserTasks($this->app->user->account, $type, 0, $pager, $sort);
$parents = array();
foreach($tasks as $task)
{
if($task->parent > 0) $parents[$task->parent] = $task->parent;
}
$parents = $this->dao->select('*')->from(TABLE_TASK)->where('id')->in($parents)->fetchAll('id');
foreach($tasks as $task)
{
if($task->parent > 0)
+1 -7
View File
@@ -159,13 +159,7 @@ class repoModel extends model
}
else
{
if($projectID)
{
foreach($productIdList as $productID)
{
if(strpos(",$repo->product,", ",$productID,") === false) unset($repos[$i]);
}
}
if($projectID && !in_array($repo->product, $productIdList)) unset($repos[$i]);
}
}