* finish the task #629.

This commit is contained in:
shiyangyangwork@yahoo.cn
2011-11-28 08:23:09 +00:00
parent 1e9b5980f8
commit 794795844b
9 changed files with 65 additions and 12 deletions
+1 -2
View File
@@ -39,10 +39,9 @@ class testtaskModel extends model
* @access public
* @return void
*/
function create($productID)
function create()
{
$task = fixer::input('post')
->add('product', $productID)
->stripTags('name')
->get();
$this->dao->insert(TABLE_TESTTASK)->data($task)->autoCheck()->batchcheck($this->config->testtask->create->requiredFields, 'notempty')->exec();