This commit is contained in:
hufangzhou
2021-07-19 09:17:05 +08:00
parent 44ad3e602c
commit 9d181f5493
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -2208,7 +2208,7 @@ class execution extends control
$position[] = html::a($browseExecutionLink, $execution->name);
$position[] = $this->lang->execution->manageProducts;
$allProducts = $this->product->getProductPairsByProject($execution->project);
$allProducts = $this->config->systemMode == 'classic' ? $this->product->getPairs('noclosed') : $this->product->getProductPairsByProject($execution->project);
$linkedProducts = $this->execution->getProducts($execution->id);
$linkedBranches = array();
+1 -1
View File
@@ -305,7 +305,7 @@ class productModel extends model
*/
public function getProductPairsByProject($projectID = 0, $status = 'all')
{
$products = (empty($projectID) or $this->config->systemMode == 'classic') ? $this->getList() : $this->getProducts($projectID, $status);
$products = empty($projectID) ? $this->getList() : $this->getProducts($projectID, $status);
$pairs = array();
if(!empty($products))
{