* [bug#63016,done,0.2h,0h] Fix create child template task error.
This commit is contained in:
@@ -981,6 +981,7 @@ class taskModel extends model
|
||||
if($execution && $this->isNoStoryExecution($execution)) $requiredFields = str_replace(',story,', ',', $requiredFields);
|
||||
|
||||
/* Insert task data. */
|
||||
$task->isTpl = $execution->isTpl;
|
||||
if(empty($task->assignedTo)) unset($task->assignedDate);
|
||||
$this->dao->insert(TABLE_TASK)->data($task, 'docVersions')
|
||||
->checkIF($task->estimate != '', 'estimate', 'float')
|
||||
|
||||
@@ -699,7 +699,6 @@ class taskZen extends task
|
||||
$task = form::data($formConfig)->setDefault('execution', $executionID)
|
||||
->setDefault('project', $execution->project)
|
||||
->setDefault('left', 0)
|
||||
->setDefault('isTpl', $execution->isTpl)
|
||||
->setIF($this->post->estimate, 'left', $this->post->estimate)
|
||||
->setIF($this->post->mode, 'mode', $this->post->mode)
|
||||
->setIF($this->post->story, 'storyVersion', $this->post->story ? $this->loadModel('story')->getVersion((int)$this->post->story) : 1)
|
||||
|
||||
Reference in New Issue
Block a user