Kunstmaan / KunstmaanBundlesCMS

An advanced yet user-friendly content management system, based on the full stack Symfony framework combined with a whole host of community bundles. It provides a full featured, multi-language CMS system with an innovative page and form assembling process, versioning, workflow, translation and media managers and much more.
https://kunstmaancms.be
MIT License
406 stars 188 forks source link

[MediaBundle] Treeview incorrect #3383

Open stanv923 opened 7 months ago

stanv923 commented 7 months ago

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 commented 7 months ago

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 c48c51508ef9ee6cfc7fc88616a35e5c21f0f81f on 24/03/2024 It (obviously) works when I change the return type to string|array