- remove the useless param product of create() method.

This commit is contained in:
wangchunsheng
2011-06-30 08:03:18 +00:00
parent 5ecaea9500
commit 7ac4a653b0

View File

@@ -62,11 +62,10 @@ class productplanModel extends model
/**
* Create a plan.
*
* @param int $product
* @access public
* @return int
*/
public function create($product)
public function create()
{
$plan = fixer::input('post')->stripTags('title')->get();
$this->dao->insert(TABLE_PRODUCTPLAN)->data($plan)->autoCheck()->batchCheck($this->config->productplan->create->requiredFields, 'notempty')->exec();