- remove the useless param product of create() method.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user