From dc8b6b1e4cf775261fc60e7ad910b88e22d2f346 Mon Sep 17 00:00:00 2001 From: leiyong <1549684884@qq.com> Date: Thu, 25 Feb 2021 13:36:14 +0800 Subject: [PATCH] * Fix bug. --- module/product/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/product/model.php b/module/product/model.php index 4f05e02c3f..7311e57233 100644 --- a/module/product/model.php +++ b/module/product/model.php @@ -963,7 +963,7 @@ class productModel extends model */ public function getExecutionPairsByProduct($productID, $branch = 0, $orderBy = 'id_asc', $projectID = 0) { - if($productID) return array(); + if(empty($productID)) return array(); if(empty($projectID)) return $this->getAllExecutionPairsByProduct($productID, $branch); $project = $this->loadModel('program')->getPRJByID($projectID);