linlinjava / litemall

又一个小商城。litemall = Spring Boot后端 + Vue管理员前端 + 微信小程序用户前端 + Vue用户移动端
MIT License
19.11k stars 7.17k forks source link

Bug fix: 参数不对 in the admin when updating a L2 category #539

Closed charlyisidore closed 1 year ago

charlyisidore commented 1 year ago

Problem: Updating a L2 (level 2) category in the admin causes a failure.

The admin API forgets to send the pid (parent ID) of L2 categories. Therefore, when updating a L2 category, the validate() method in AdminCategoryController.java fails because its pid is null.

Solution: Add the pid of L2 categories in the data sent from /admin/category/list.