Merge branch '230' into sprint/zentaopms230
This commit is contained in:
@@ -2146,7 +2146,8 @@ class executionModel extends model
|
||||
{
|
||||
$this->loadModel('task');
|
||||
|
||||
$tasks = $this->dao->select('id,execution,assignedTo,story,consumed,status')->from(TABLE_TASK)->where('id')->in($this->post->tasks)->fetchAll('id');
|
||||
$execution = $this->getByID($executionID);
|
||||
$tasks = $this->dao->select('id,execution,assignedTo,story,consumed,status')->from(TABLE_TASK)->where('id')->in($this->post->tasks)->fetchAll('id');
|
||||
foreach($tasks as $task)
|
||||
{
|
||||
/* Save the assignedToes and stories, should linked to execution. */
|
||||
@@ -2154,8 +2155,9 @@ class executionModel extends model
|
||||
$stories[$task->story] = $task->story;
|
||||
|
||||
$data = new stdclass();
|
||||
$data->project = $execution->project;
|
||||
$data->execution = $executionID;
|
||||
$data->status = $task->consumed > 0 ? 'doing' : 'wait';
|
||||
$data->status = $task->consumed > 0 ? 'doing' : 'wait';
|
||||
|
||||
if($task->status == 'cancel')
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user