* finish task #7290.
This commit is contained in:
@@ -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())
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user