-
-
Notifications
You must be signed in to change notification settings - Fork 188
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
Comments
Possibly related, I've literally just run into this error: // 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 |
Ive stumbled upon this issue myself, can confirm it exists, tree rebuilding inside media bundle happens to properly support only two levels deep, as it orders items by parent ID, if you have further nesting you end up with incorrect levels that breaks tree. Ive used gedmo recover and my tree is flawless, but some events triggers something and tree breaks after some changes. Im still trying to figure out where. |
I ended up overriding folder repository, now for me it seems everything works as expected, so pull request is quite easy I guess.
|
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 negativelft
andrgt
values.I have also tried:
recover
function on the repository: https://github.com/doctrine-extensions/DoctrineExtensions/blob/main/src/Tree/Entity/Repository/NestedTreeRepository.php#L995 but this did not workrebuildTree
function on the kunstmaan folder repository: https://github.com/Kunstmaan/KunstmaanBundlesCMS/blob/6.4/src/Kunstmaan/MediaBundle/Repository/FolderRepository.php#L270 this works but i will lose the complete structure of the media collection (which is quite large, and would be a lot of work the reorganize completely).The text was updated successfully, but these errors were encountered: