* Fix bug #13706.
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user