Closed Log1x closed 1 month ago
Yêu cầu kéo này thực hiện một sửa đổi để xóa các vị trí menu chưa được đăng ký khi cập nhật menu. Thay đổi được thực hiện trong tệp EditMenu.php
, cụ thể là trong phương thức handleRecordUpdate
. Việc triển khai lọc mảng vị trí so với các vị trí đã đăng ký để đảm bảo rằng các vị trí không còn được đăng ký sẽ bị xóa đúng cách.
Tệp | Thay đổi |
---|---|
src/Resources/MenuResource/Pages/EditMenu.php |
Thay thế việc gán đơn giản của các vị trí bằng một bộ sưu tập đã lọc |
src/Resources/MenuResource/Pages/EditMenu.php |
Lấy các vị trí đã đăng ký từ FilamentMenuBuilderPlugin |
src/Resources/MenuResource/Pages/EditMenu.php |
Lọc các vị trí để chỉ giữ lại những vị trí tồn tại trong các vị trí đã đăng ký |
This filters menu locations against registered locations when updating to ensure locations that are no longer registered get properly deleted.
Tóm tắt bởi Sourcery
Lọc các vị trí menu so với các vị trí đã đăng ký trong quá trình cập nhật để xóa các vị trí chưa đăng ký.
Sửa lỗi:
Original summary in English
## Summary by Sourcery Filter menu locations against registered locations during updates to delete unregistered locations. Bug Fixes: - Ensure that menu locations are filtered against registered locations when updating, deleting any unregistered locations.