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')