* Refactor kanban code.

This commit is contained in:
孙广明
2022-01-12 11:23:05 +08:00
parent 2ed55b0c68
commit 0afb843ef5
3 changed files with 70 additions and 78 deletions
+1 -1
View File
@@ -381,7 +381,7 @@ class executionModel extends model
$creatorExists = false;
$teamMembers = array();
if(isset($project) and $project->model != 'kanban') $this->loadModel('kanban')->createExecutionLane($executionID);
if((isset($project) and $project->model != 'kanban') or empty($project)) $this->loadModel('kanban')->createExecutionLane($executionID);
/* Save order. */
$this->dao->update(TABLE_EXECUTION)->set('`order`')->eq($executionID * 5)->where('id')->eq($executionID)->exec();