* [bug#60843] adjust mr link task data filter.

This commit is contained in:
caoyanyi
2025-03-25 16:50:13 +08:00
committed by 田淑杰
parent c9941d0ed8
commit 04830daabf
3 changed files with 16 additions and 6 deletions
+1 -1
View File
@@ -1915,7 +1915,7 @@ class executionModel extends model
$taskQuery = $this->session->taskQuery;
/* Limit current execution when no execution. */
if(strpos($taskQuery, "`execution` =") === false && strpos($taskQuery, "`project` =") === false) $taskQuery .= " AND `execution` = $executionID";
if(strpos($taskQuery, "`execution` =") === false && strpos($taskQuery, "`project` =") === false && $executionID) $taskQuery .= " AND `execution` = $executionID";
if(strpos($taskQuery, "`execution` = 'all'") !== false)
{
$executions = $this->getPairs(0, 'all', "nocode,noprefix,multiple");