cqp 2 mesi fa
parent
commit
9e7e6fe626
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      app/Service/EmployeeService.php

+ 1 - 1
app/Service/EmployeeService.php

@@ -859,7 +859,7 @@ class EmployeeService extends Service
         $model = $this->departCommon($data, $user);
 
         $list = $model->get()->toArray();
-        $list = $this->fillDepartList($list, $user);
+        $list = $this->fillDepartList($list, $user, true);
         $list_tree = $list;
         if(! empty($list_tree)) {
             $minParentId = min(array_column($list_tree, 'parent_id'));