Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MediaBundle] Treeview incorrect #3383

Open
stanv923 opened this issue Apr 2, 2024 · 1 comment
Open

[MediaBundle] Treeview incorrect #3383

stanv923 opened this issue Apr 2, 2024 · 1 comment

Comments

@stanv923
Copy link

stanv923 commented Apr 2, 2024

I was reordering media folders in the CMS and when i move a specific folder to the root folder, the treeview on the left side shows only the folder contents of that specific folder. When i click media again i see the root folder again in the treeview but the subfolder is missing. In the content view (middle of the screen) the folder does appear. So the treeview and the contents view differ. When i look in the database i can see that the there are many rows in the kuma_folders table that have negative lft and rgt values.

I have also tried:

@delboy1978uk
Copy link
Contributor

delboy1978uk commented Apr 2, 2024

Possibly related, I've literally just run into this error:
Kunstmaan\MenuBundle\Twig\MenuTwigExtension::getMenu(): Return value must be of type string, array returned
In vendor/gedmo/doctrine-extensions/src/Tree/RepositoryUtils::buildTree() we can see the following comment on line 118:

// If you don't want any html output it will return the nested array

The twig extension was changed in commit c48c515 on 24/03/2024
It (obviously) works when I change the return type to string|array

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants