From 88fb85c27b1ba792522ac41dc61fe553f7d5d4e7 Mon Sep 17 00:00:00 2001 From: songchenxuan Date: Fri, 1 Apr 2022 15:47:02 +0800 Subject: [PATCH] * Fix product.php builds bug. --- api/v1/entries/product.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/v1/entries/product.php b/api/v1/entries/product.php index 90476c5493..bd32975f52 100644 --- a/api/v1/entries/product.php +++ b/api/v1/entries/product.php @@ -58,7 +58,7 @@ class productEntry extends Entry $product->moduleOptionMenu = $this->loadModel('tree')->getOptionMenu($productID, 'bug', 0, 'all'); break; case 'builds': - $product->builds = $this->loadModel('build')->getBuildPairs($productID, 'all', 'noempty,noterminate,nodone,withbranch'); + $product->builds = $this->loadModel('build')->getBuildPairs($productID, 'all', 'noempty,noterminate,nodone,withbranch', $this->param('object', 0), $this->param('objectType', 'execution')); break; case 'actions': $product->addComment = common::hasPriv('action', 'comment') ? true : false;