* change the product->saveState.

This commit is contained in:
wangchunsheng
2010-11-24 03:25:05 +00:00
parent d0252733e2
commit 79aa8ae51e
3 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -65,7 +65,7 @@ class bug extends control
{
/* Set browseType, productID, moduleID and queryID. */
$browseType = strtolower($browseType);
$productID = $this->product->saveState($productID, key($this->products));
$productID = $this->product->saveState($productID, $this->products);
$moduleID = ($browseType == 'bymodule') ? (int)$param : 0;
$queryID = ($browseType == 'bysearch') ? (int)$param : 0;
@@ -273,7 +273,7 @@ class bug extends control
}
/* Get product, then set menu. */
$productID = $this->product->saveState($productID, key($this->products));
$productID = $this->product->saveState($productID, $this->products);
$this->bug->setMenu($this->products, $productID);
/* Remove the unused types. */