* [ticket#1773,doing,0.3h] change project range.

This commit is contained in:
tianshujie
2025-02-12 13:57:14 +08:00
committed by 刘梦艺
parent b5041dc361
commit 2f4e7ca7b2
+2 -1
View File
@@ -1176,7 +1176,8 @@ class bugZen extends bug
if(!empty($bug->execution) && empty($executions[$bug->execution]) && !in_array($execution->attribute, $unAllowedStage)) $executions[$execution->id] = $execution->name . "({$this->lang->bug->deleted})";
/* Get project pairs. */
$projects = $this->product->getProjectPairsByProduct($bug->product, (string)$bug->branch);
$projectPairs = $product->shadow ? $this->loadModel('project')->getPairs(false, 'noproduct,noclosed') : array();
$projects = $this->product->getProjectPairsByProduct($bug->product, (string)$bug->branch, array_keys($projectPairs));
if(!empty($bug->project) && empty($projects[$bug->project]))
{
$project = $this->loadModel('project')->getByID($bug->project);