diff --git a/src/app/Library/CrudPanel/Traits/Reorder.php b/src/app/Library/CrudPanel/Traits/Reorder.php index cb8c52a3b1..2b51bc86e6 100644 --- a/src/app/Library/CrudPanel/Traits/Reorder.php +++ b/src/app/Library/CrudPanel/Traits/Reorder.php @@ -29,8 +29,8 @@ public function updateTreeOrder($request) $reorderItems = collect($request)->filter(function ($item) use ($itemKeys) { return $item['item_id'] !== '' && $item['item_id'] !== null && $itemKeys->contains($item['item_id']); })->map(function ($item) use ($primaryKey) { - $item[$primaryKey] = (int) $item['item_id']; - $item['parent_id'] = empty($item['parent_id']) ? null : (int) $item['parent_id']; + $item[$primaryKey] = $item['item_id']; + $item['parent_id'] = empty($item['parent_id']) ? null : $item['parent_id']; $item['depth'] = empty($item['depth']) ? null : (int) $item['depth']; $item['lft'] = empty($item['left']) ? null : (int) $item['left']; $item['rgt'] = empty($item['right']) ? null : (int) $item['right'];