* Merge 18.x #67896fb06c16df01236db552593614c19467ed2a.

This commit is contained in:
tanghucheng
2024-03-08 11:33:01 +08:00
parent e8b3692814
commit 342ac6f6bf
+2 -1
View File
@@ -1281,7 +1281,8 @@ class executionModel extends model
/* Order by status's content whether or not done. */
$executions = $this->dao->select("*, IF(INSTR('done,closed', status) < 2, 0, 1) AS isDone, INSTR('doing,wait,suspended,closed', status) AS sortStatus")->from(TABLE_EXECUTION)
->where('vision')->eq($this->config->vision)
->where('type')->ne('')
->beginIF($this->config->vision == 'lite')->andWhere('vision')->eq($this->config->vision)->fi()
->beginIF((!$this->session->multiple && $this->app->tab == 'execution') || strpos($mode, 'multiple') !== false)->andWhere('multiple')->eq('1')->fi()
->beginIF($type != 'all')->andWhere('type')->in($type)->fi()
->beginIF($type == 'all')->andWhere('type')->in('stage,sprint,kanban')->fi()