+ complete task #303:add kindeditor to bug, story, task, todo, testtask module.

This commit is contained in:
fujia
2010-09-09 10:02:53 +00:00
parent 2394cefd95
commit 3b3045fed1
304 changed files with 6910 additions and 1809 deletions
-2
View File
@@ -41,7 +41,6 @@ class testtaskModel extends model
$task = fixer::input('post')
->add('product', $productID)
->stripTags('name')
->specialChars('desc')
->get();
$this->dao->insert(TABLE_TESTTASK)->data($task)->autoCheck()->batchcheck($this->config->testtask->create->requiredFields, 'notempty')->exec();
if(!dao::isError()) return $this->dao->lastInsertID();
@@ -79,7 +78,6 @@ class testtaskModel extends model
$oldTask = $this->getById($taskID);
$task = fixer::input('post')
->stripTags('name')
->specialChars('desc')
->get();
$this->dao->update(TABLE_TESTTASK)->data($task)->autoCheck()->batchcheck($this->config->testtask->edit->requiredFields, 'notempty')->where('id')->eq($taskID)->exec();
if(!dao::isError()) return common::createChanges($oldTask, $task);