Explorar o código

kanban任务empty值不为空

kely hai 11 meses
pai
achega
d7e09004b5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/Services/Project/ProjectKanbanService.php

+ 1 - 1
app/Services/Project/ProjectKanbanService.php

@@ -45,7 +45,7 @@ class ProjectKanbanService
         $collection->each(function ($item, $key)use ($collection,$items) {
             $collection[$key]=(object)array_merge($collection[$key]->toArray(),$items[$collection[$key]->id]);
         });
-        if ($items['empty']){//当存在empty时,单独在末尾添加改task
+        if (isset($items['empty'])){//当存在empty时,单独在末尾添加改task
             $collection->push($items['empty']);
         }
         return [