Merge branch 'release/21.7.8' into release/22.0.alpha1
This commit is contained in:
@@ -344,6 +344,7 @@ class taskModel extends model
|
||||
$this->afterChangeStatus($oldTask, $changes, $action, $output);
|
||||
|
||||
/* Send Webhook notifications and synchronize status to execution, project and program. */
|
||||
$oldExecution = $this->loadModel('execution')->fetchByID($oldTask->execution);
|
||||
$this->executeHooks($oldTask->id);
|
||||
$this->loadModel('common')->syncPPEStatus($oldTask->id);
|
||||
|
||||
@@ -354,6 +355,12 @@ class taskModel extends model
|
||||
if($response) return $response;
|
||||
}
|
||||
|
||||
if($oldExecution->status == 'wait')
|
||||
{
|
||||
$inLiteKanban = $this->config->vision == 'lite' && $this->app->tab == 'project' && $this->session->kanbanview == 'kanban';
|
||||
if(($this->app->tab == 'execution' || $inLiteKanban) && $oldExecution->type == 'kanban') return array('result' => 'success', 'message' => $this->lang->saveSuccess, 'load' => true);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -2305,7 +2312,7 @@ class taskModel extends model
|
||||
|
||||
if($appendParent)
|
||||
{
|
||||
$parentTasks = $this->dao->select('id,assignedTo,finishedBy,mailto')->from(TABLE_TASK)->where('id')->in($task->path)->andWhere('id')->ne($task->id)->fetchAll('id');
|
||||
$parentTasks = $this->dao->select('id,assignedTo,openedBy,finishedBy,mailto')->from(TABLE_TASK)->where('id')->in($task->path)->andWhere('id')->ne($task->id)->fetchAll('id');
|
||||
foreach($parentTasks as $parentTask)
|
||||
{
|
||||
$parentAssignedTo = $parentTask->assignedTo;
|
||||
|
||||
Reference in New Issue
Block a user