* code for task #74775.

This commit is contained in:
wangyidong
2022-11-02 14:05:22 +08:00
parent e29b72fe17
commit 557d32fbd3
+3 -1
View File
@@ -2180,12 +2180,14 @@ class executionModel extends model
public function getOrderedExecutions($executionID, $status, $num = 0)
{
$executionList = $this->getList($executionID, 'all', $status);
if(empty($executionIdList)) return $executionList;
if(empty($executionList)) return $executionList;
$executions = $mineExecutions = $otherExecutions = $closedExecutions = array();
foreach($executionList as $execution)
{
if(empty($execution->multiple)) continue;
if(!$this->app->user->admin and !$this->checkPriv($execution->id)) continue;
if($execution->status != 'done' and $execution->status != 'closed' and $execution->PM == $this->app->user->account)
{
$mineExecutions[$execution->id] = $execution;