From 2d30ee8a97a3a855e345c2fab9df5dd36db5225b Mon Sep 17 00:00:00 2001 From: wangyidong Date: Wed, 12 Sep 2018 15:00:21 +0800 Subject: [PATCH 1/6] * finish task #4725. --- module/product/control.php | 4 ++-- module/product/view/view.html.php | 15 +++++++-------- module/productplan/lang/en.php | 1 + module/productplan/lang/zh-cn.php | 1 + 4 files changed, 11 insertions(+), 10 deletions(-) diff --git a/module/product/control.php b/module/product/control.php index a4761aeaa3..65b8e45b9c 100644 --- a/module/product/control.php +++ b/module/product/control.php @@ -383,7 +383,7 @@ class product extends control $this->product->setMenu($this->products, $productID); - $releases = $this->dao->select('*')->from(TABLE_RELEASE)->where('deleted')->eq(0)->andWhere('product')->eq($productID)->orderBy('date')->fetchAll(); + $plans = $this->loadModel('productplan')->getList($productID, 0, 'unexpired', null, 'begin'); $this->view->title = $product->name . $this->lang->colon . $this->lang->product->view; $this->view->position[] = html::a($this->createLink($this->moduleName, 'browse'), $product->name); @@ -395,7 +395,7 @@ class product extends control $this->view->lines = array('') + $this->loadModel('tree')->getLinePairs(); $this->view->branches = $this->loadModel('branch')->getPairs($productID); $this->view->dynamics = $this->loadModel('action')->getDynamic('all', 'all', 'date_desc', $pager = null, $productID); - $this->view->releases = $releases; + $this->view->plans = $plans; $this->display(); } diff --git a/module/product/view/view.html.php b/module/product/view/view.html.php index e7f6766895..a5ea3c294b 100644 --- a/module/product/view/view.html.php +++ b/module/product/view/view.html.php @@ -17,21 +17,20 @@
-
product->plan;?> product->iterationInfo, count($releases));?>
+
productplan->unexpired;?> product->iterationInfo, count($plans));?>