- move the common:saveProductState to product module.

This commit is contained in:
wangchunsheng
2010-11-11 13:54:52 +00:00
parent 2206ca8d35
commit 7dfd409b91
6 changed files with 25 additions and 19 deletions
+2 -2
View File
@@ -34,7 +34,7 @@ class testcase extends control
{
/* 设置浏览模式,产品ID和模块ID。 */
$browseType = strtolower($browseType);
$productID = common::saveProductState($productID, key($this->products));
$productID = $this->product->saveState($productID, key($this->products));
$moduleID = ($browseType == 'bymodule') ? (int)$param : 0;
$queryID = ($browseType == 'bysearch') ? (int)$param : 0;
@@ -126,7 +126,7 @@ class testcase extends control
}
if(empty($this->products)) $this->locate($this->createLink('product', 'create'));
$productID = common::saveProductState($productID, key($this->products));
$productID = $this->product->saveState($productID, key($this->products));
$currentModuleID = (int)$moduleID;
/* 设置菜单。*/