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 @@