From d2c577c6f6e739d57eccdb7d003e6c8b5772afa3 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Wed, 4 Sep 2019 08:51:23 +0800 Subject: [PATCH] * fix get plan list when product is null. --- module/productplan/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/productplan/model.php b/module/productplan/model.php index 087ff20381..87c9a0fb81 100644 --- a/module/productplan/model.php +++ b/module/productplan/model.php @@ -81,7 +81,7 @@ class productplanModel extends model { $date = date('Y-m-d'); $plans = $this->dao->select('t1.*,t2.project')->from(TABLE_PRODUCTPLAN)->alias('t1') - ->leftJoin(TABLE_PROJECTPRODUCT)->alias('t2')->on('t2.plan = t1.id and t2.product = ' . $product) + ->leftJoin(TABLE_PROJECTPRODUCT)->alias('t2')->on("t2.plan = t1.id and t2.product = '$product'") ->where('t1.product')->eq($product) ->andWhere('t1.deleted')->eq(0) ->beginIF(!empty($branch))->andWhere('t1.branch')->eq($branch)->fi()