wintercms / winter

Free, open-source, self-hosted CMS platform based on the Laravel PHP Framework.
https://wintercms.com
MIT License
1.33k stars 191 forks source link

Backend list tree view unable to expand from second level on #1160

Open goldmont opened 1 month ago

goldmont commented 1 month ago

Winter CMS Build

1.2

PHP Version

8.1

Database engine

MySQL/MariaDB

Plugins installed

No response

Issue description

Hi,

I'm not able to expand tree view records from second level on. I can successfully expand the root level but I'm not able to see the children of the first child.

image

When I try to expand the record with ID 2, the page is simply refreshed and the whole tree collapsed: ezgif-6-08d3865357

Could you help me?

My configuration:

showTree: true
treeExpanded: false

Steps to replicate

Setup a model with SimpleTree trait and then enable showTree in your config_list.yaml

Workaround

No response

goldmont commented 1 month ago

HTTP request seems fine.

Expanding first node: image

Expanding second node: image

LukeTowers commented 1 month ago

@goldmont @der-On any chance this is related to https://github.com/wintercms/winter/commit/555f13027e7cc0ceedfb7df715d98ad4b053e391?

der-On commented 1 week ago

@goldmont I'm sorry I can't confirm/reproduce this. Have you checked that the models table has all required fields?