* finish task #7290.

This commit is contained in:
z
2020-06-19 13:06:18 +08:00
parent b15040adb8
commit ee3597a4e5
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -93,7 +93,7 @@ class task extends control
$response['message'] = $this->lang->saveSuccess;
setcookie('lastTaskModule', (int)$this->post->module, $this->config->cookieLife, $this->config->webRoot, '', false, false);
if($this->post->project) $projectID = $this->post->project;
if($this->post->project) $projectID = (int)$this->post->project;
$tasksID = $this->task->create($projectID);
if(dao::isError())
{
+2
View File
@@ -49,11 +49,13 @@ class taskModel extends model
->setIF(is_numeric($this->post->left), 'left', (float)$this->post->left)
->setDefault('openedBy', $this->app->user->account)
->setDefault('openedDate', helper::now())
->cleanINT('project,story')
->stripTags($this->config->task->editor->create['id'], $this->config->allowedTags)
->join('mailto', ',')
->remove('after,files,labels,assignedTo,uid,storyEstimate,storyDesc,storyPri,team,teamEstimate,teamMember,multiple,teams,contactListMenu,selectTestStory,testStory,testPri,testEstStarted,testDeadline,testAssignedTo,testEstimate')
->get();
if($task->type != 'test') $this->post->set('selectTestStory', 0);
if($task->project == 0) $task->project = '';
foreach($this->post->assignedTo as $assignedTo)
{