From d30faee4f3c93c769b3857582ba2d07ee7d93fe7 Mon Sep 17 00:00:00 2001 From: tanghucheng Date: Wed, 8 Nov 2023 01:19:48 -0500 Subject: [PATCH] * Fix product fetchPairs. --- module/product/tao.php | 1 + 1 file changed, 1 insertion(+) diff --git a/module/product/tao.php b/module/product/tao.php index d512253722..c0ce17c365 100644 --- a/module/product/tao.php +++ b/module/product/tao.php @@ -50,6 +50,7 @@ class productTao extends productModel $append = $this->formatAppendParam($append); return $this->dao->select("t1.*, IF(INSTR(' closed', t1.status) < 2, 0, 1) AS isClosed")->from(TABLE_PRODUCT)->alias('t1') ->leftJoin(TABLE_PROGRAM)->alias('t2')->on('t1.program = t2.id') + ->where('t1.name')->ne('') ->beginIF($this->config->vision != 'or')->andWhere("FIND_IN_SET('{$this->config->vision}', t1.vision)")->fi() ->beginIF($shadow !== 'all')->andWhere('t1.shadow')->eq((int)$shadow)->fi() ->andWhere('((1=1')