From 2d30ee8a97a3a855e345c2fab9df5dd36db5225b Mon Sep 17 00:00:00 2001 From: wangyidong Date: Wed, 12 Sep 2018 15:00:21 +0800 Subject: [PATCH] * 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));?>
    - + 6) break;?> -
  • date) echo "class='active'";?>> - id}");?>"> - marker)) echo "";?> - name;?> - date;?> - desc;?> +
  • begin) echo "class='active'";?>> + id}");?>"> + title;?> + begin;?> + desc;?>
  • diff --git a/module/productplan/lang/en.php b/module/productplan/lang/en.php index d9dec2ed56..491aa09b94 100644 --- a/module/productplan/lang/en.php +++ b/module/productplan/lang/en.php @@ -33,6 +33,7 @@ $lang->productplan->unlinkBug = "Unlink Bug"; $lang->productplan->batchUnlinkBug = "Batch Unlink Bug"; $lang->productplan->linkedBugs = 'Linked Bug'; $lang->productplan->unlinkedBugs = 'Unlinked'; +$lang->productplan->unexpired = 'Unexpired Plan'; $lang->productplan->confirmDelete = "Do you want to delete this Plan?"; $lang->productplan->confirmUnlinkStory = "Do you want to unlink this Story?"; diff --git a/module/productplan/lang/zh-cn.php b/module/productplan/lang/zh-cn.php index b0cde5314f..561bf5dd28 100644 --- a/module/productplan/lang/zh-cn.php +++ b/module/productplan/lang/zh-cn.php @@ -33,6 +33,7 @@ $lang->productplan->unlinkBug = "移除Bug"; $lang->productplan->batchUnlinkBug = "批量移除Bug"; $lang->productplan->linkedBugs = 'Bug'; $lang->productplan->unlinkedBugs = '未关联Bug'; +$lang->productplan->unexpired = '未过期计划'; $lang->productplan->confirmDelete = "您确认删除该计划吗?"; $lang->productplan->confirmUnlinkStory = "您确认移除该需求吗?";