* 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

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. */

View File

@@ -56,7 +56,7 @@ class testcase 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;
@@ -158,7 +158,7 @@ class testcase extends control
if(empty($this->products)) $this->locate($this->createLink('product', 'create'));
/* Set productID and currentModuleID. */
$productID = $this->product->saveState($productID, key($this->products));
$productID = $this->product->saveState($productID, $this->products);
$currentModuleID = (int)$moduleID;
/* Set menu. */

View File

@@ -54,7 +54,7 @@ class testtask extends control
$this->session->set('testtaskList', $this->app->getURI(true));
/* Set menu. */
$productID = $this->product->saveState($productID, key($this->products));
$productID = $this->product->saveState($productID, $this->products);
$this->testtask->setMenu($this->products, $productID);
/* Load pager. */
@@ -91,7 +91,7 @@ class testtask extends control
}
/* Set menu. */
$productID = $this->product->saveState($productID, key($this->products));
$productID = $this->product->saveState($productID, $this->products);
$this->testtask->setMenu($this->products, $productID);
$this->view->header['title'] = $this->products[$productID] . $this->lang->colon . $this->lang->testtask->create;
@@ -206,7 +206,7 @@ class testtask extends control
/* Get task info. */
$task = $this->testtask->getById($taskID);
$productID = $this->product->saveState($task->product, key($this->products));
$productID = $this->product->saveState($task->product, $this->products);
/* Set menu. */
$this->testtask->setMenu($this->products, $productID);
@@ -264,7 +264,7 @@ class testtask extends control
/* Get task and product id. */
$task = $this->testtask->getById($taskID);
$productID = $this->product->saveState($task->product, key($this->products));
$productID = $this->product->saveState($task->product, $this->products);
/* Build the search form. */
$this->loadModel('testcase');