From f081ea468691e669de3d3308bb04bdfbb8e2c783 Mon Sep 17 00:00:00 2001 From: liumengyi Date: Fri, 7 Jun 2024 09:04:43 +0800 Subject: [PATCH] + [bug#39325,done,0.2h] don't filter execution if you search for all executions. --- module/my/tao.php | 1 + 1 file changed, 1 insertion(+) diff --git a/module/my/tao.php b/module/my/tao.php index b3bc710123..fd20845634 100644 --- a/module/my/tao.php +++ b/module/my/tao.php @@ -77,6 +77,7 @@ class myTao extends myModel $operatorAndAccount = $assignedToMatches[1]; $query = str_replace("t1.{$assignedToMatches[0]}", "(t1.{$assignedToCondition} or (t1.mode = 'multi' and t5.`account` {$operatorAndAccount} and t1.status != 'closed' and t5.status != 'done') )", $query); } + if(strpos($query, "t1.`execution` = 'all'") !== false) $query = str_replace("t1.`execution` = 'all'", "t1.`execution` != '0'", $query); $orderBy = str_replace('pri_', 'priOrder_', $orderBy); return $this->dao->select("t1.*, t4.id as project, t2.id as executionID, t2.name as executionName, t2.multiple as executionMultiple, t4.name as projectName, t2.type as executionType, t3.id as storyID, t3.title as storyTitle, t3.status AS storyStatus, t3.version AS latestStoryVersion, IF(t1.`pri` = 0, {$this->config->maxPriValue}, t1.`pri`) as priOrder")