* finish task #1793.
This commit is contained in:
@@ -41,9 +41,7 @@ class testtaskModel extends model
|
||||
*/
|
||||
function create()
|
||||
{
|
||||
$task = fixer::input('post')
|
||||
->stripTags('name')
|
||||
->get();
|
||||
$task = fixer::input('post')->skipSpecial($this->config->testtask->editor->create['id'])->get();
|
||||
$this->dao->insert(TABLE_TESTTASK)->data($task)
|
||||
->autoCheck($skipFields = 'begin,end')
|
||||
->batchcheck($this->config->testtask->create->requiredFields, 'notempty')
|
||||
@@ -152,7 +150,7 @@ class testtaskModel extends model
|
||||
public function update($taskID)
|
||||
{
|
||||
$oldTask = $this->getById($taskID);
|
||||
$task = fixer::input('post')->stripTags('name')->get();
|
||||
$task = fixer::input('post')->skipSpecial($this->config->testtask->editor->edit['id'])->get();
|
||||
$this->dao->update(TABLE_TESTTASK)->data($task)
|
||||
->autoCheck()
|
||||
->batchcheck($this->config->testtask->edit->requiredFields, 'notempty')
|
||||
@@ -195,6 +193,7 @@ class testtaskModel extends model
|
||||
$oldTesttask = $this->getById($taskID);
|
||||
$testtask = fixer::input('post')
|
||||
->setDefault('status', 'done')
|
||||
->skipSpecial($this->config->testtask->editor->close['id'])
|
||||
->remove('comment')->get();
|
||||
|
||||
$this->dao->update(TABLE_TESTTASK)->data($testtask)
|
||||
|
||||
Reference in New Issue
Block a user