-
+
diff --git a/module/dev/view/header.html.php b/module/dev/view/header.html.php
index 023667c840..10ac21f534 100644
--- a/module/dev/view/header.html.php
+++ b/module/dev/view/header.html.php
@@ -1,5 +1,5 @@
-
+
diff --git a/module/message/view/header.html.php b/module/message/view/header.html.php
index c101596db7..1c69b5f855 100644
--- a/module/message/view/header.html.php
+++ b/module/message/view/header.html.php
@@ -1,4 +1,4 @@
-
+
diff --git a/module/product/control.php b/module/product/control.php
index 003fa33b4c..96300a3605 100644
--- a/module/product/control.php
+++ b/module/product/control.php
@@ -115,13 +115,14 @@ class product extends control
* @param int $recTotal
* @param int $recPerPage
* @param int $pageID
- * @param string $from product|project
+ * @param int $projectID
* @access public
* @return void
*/
- public function browse($productID = 0, $branch = 0, $browseType = '', $param = 0, $storyType = 'story', $orderBy = '', $recTotal = 0, $recPerPage = 20, $pageID = 1, $from = 'product')
+ public function browse($productID = 0, $branch = 0, $browseType = '', $param = 0, $storyType = 'story', $orderBy = '', $recTotal = 0, $recPerPage = 20, $pageID = 1, $projectID = 0)
{
- $this->product->setMenu($productID, $branch);
+ if($this->app->openApp == 'product') $this->product->setMenu($productID, $branch);
+ if($this->app->openApp == 'project') $this->loadModel('project')->setMenu($projectID);
/* Lower browse type. */
$browseType = strtolower($browseType);
@@ -289,6 +290,7 @@ class product extends control
$this->view->storyBugs = $storyBugs;
$this->view->storyCases = $storyCases;
$this->view->param = $param;
+ $this->view->projectID = $projectID;
$this->view->products = $this->products;
$this->view->projectProducts = isset($projectProducts) ? $projectProducts : array();
$this->view->storyType = $storyType;
diff --git a/module/product/view/browse.html.php b/module/product/view/browse.html.php
index 1029d149d1..775633e480 100644
--- a/module/product/view/browse.html.php
+++ b/module/product/view/browse.html.php
@@ -135,18 +135,17 @@ $isProjectStory = $this->app->rawModule == 'projectstory';