From da3f54870d1b16db0f2c4727a90c192882a1d55b Mon Sep 17 00:00:00 2001 From: lanzongjun Date: Fri, 21 Oct 2022 16:13:38 +0800 Subject: [PATCH] fix bug guide --- module/product/control.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/module/product/control.php b/module/product/control.php index 65847d39ff..e9261dddfc 100644 --- a/module/product/control.php +++ b/module/product/control.php @@ -1147,7 +1147,18 @@ class product extends control $programProducts = array(); - $products = $this->app->tab == 'project' ? $this->product->getProducts($this->session->project) : $this->product->getList(); + if($this->app->tab == 'project') + { + $products = $this->product->getProducts($this->session->project); + } + elseif($this->app->tab == 'feedback') + { + $products = $this->loadModel('feedback')->getGrantProducts(false); + } + else + { + $products = $this->product->getList(); + } foreach($products as $product) $programProducts[$product->program][] = $product;