Media tree doesn't show folders in 7.15.0 any more for folders created before 7.8.0
See original GitHub issueSee for original report: https://our.umbraco.com/forum/using-umbraco-and-getting-started/98092-umbraco-715-media-folders-not-appearing-in-the-tree
In 7.8.0 we introduced a new table cmsMedia
in which all media items get populated when they have a mediaPath
- sadly, media items of type Folder
do not have a path so they never got into the cmsMedia
table during the upgrade.
This was no problem until we introduced this part of the query:
An INNER JOIN
on cmsMedia
will exclude the old Folders from being return since they do not exist in cmsMedia
. When changing this query to a LEFT JOIN
, the media tree returns to normal.
Workaround if you are already on 7.15.0 and need to fix your media tree right now
The complete SQL script that works great is in this comment, it has been updated after some tests came in and it is now complete: https://github.com/umbraco/Umbraco-CMS/issues/5848#issuecomment-510801892
This item has been added to our backlog AB#1714
Issue Analytics
- State:
- Created 4 years ago
- Reactions:5
- Comments:27 (16 by maintainers)
Sure, there you go: 😊
This is a reasonably large problem for users. Perhaps HQ needs to highlight this issue on the 7.15.0 release page on Our ?