From 93a17061b46c8bcd1cc6ebdcc954bb80c2327811 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Mon, 27 Feb 2017 13:18:44 +0800 Subject: [PATCH] * add doc for compatible. --- module/product/control.php | 12 ++++++++++++ module/project/control.php | 12 ++++++++++++ 2 files changed, 24 insertions(+) diff --git a/module/product/control.php b/module/product/control.php index b5ee228654..abfbb21ac9 100644 --- a/module/product/control.php +++ b/module/product/control.php @@ -658,4 +658,16 @@ class product extends control $this->view->status = $status; $this->display(); } + + /** + * Doc for compatible. + * + * @param int $productID + * @access public + * @return void + */ + public function doc($productID) + { + $this->locate($this->createLink('doc', 'objectLibs', "type=product&objectID=$productID&from=product")); + } } diff --git a/module/project/control.php b/module/project/control.php index f76ebe2e71..309f1c0848 100644 --- a/module/project/control.php +++ b/module/project/control.php @@ -1962,4 +1962,16 @@ class project extends control $this->display(); } + + /** + * Doc for compatible. + * + * @param int $projectID + * @access public + * @return void + */ + public function doc($projectID) + { + $this->locate($this->createLink('doc', 'objectLibs', "type=project&objectID=$projectID&from=project")); + } }