Merge branch release/21.7.8 of zentao/zentaopms (#12878)

This commit is contained in:
刘刚
2025-12-18 17:27:07 +08:00
committed by Gitfox
3 changed files with 9 additions and 0 deletions
+1
View File
@@ -214,6 +214,7 @@ CSS;
set::object($object),
set::title($title),
set::titleClass('text-lg text-clip font-bold'),
set::titleProps(array('title' => $title)),
set::type($objectType),
set::color($color),
set::parentTitleClass('text-lg text-clip font-bold'),
+7
View File
@@ -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;
}
+1
View File
@@ -4,6 +4,7 @@ include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/lib/task.unittest.class.php';
su('admin');
zenData('bug')->gen(5);
zenData('project')->loadYaml('project')->gen(6);
zenData('task')->loadYaml('task')->gen(9);
zenData('taskteam')->loadYaml('taskteam')->gen(6);