This commit is contained in:
tianshujie98
2021-03-22 16:35:28 +08:00
parent 77a5d0a200
commit 342956e55d
3 changed files with 20 additions and 16 deletions
+3 -3
View File
@@ -16,15 +16,15 @@ class testtaskModel extends model
/**
* Create a test task.
*
* @param int $productID
* @param int $projectID
* @access public
* @return void
*/
function create()
function create($projectID)
{
$task = fixer::input('post')
->setDefault('build', '')
->setIF($this->config->systemMode == 'new' and $this->lang->navGroup->testtask != 'qa', 'project', $this->session->project)
->setIF($this->config->systemMode == 'new' and $this->app->openApp != 'qa', 'project', $projectID)
->stripTags($this->config->testtask->editor->create['id'], $this->config->allowedTags)
->join('mailto', ',')
->remove('uid,contactListMenu')