Umbraco.Media(someId).Children.Any() returns false after upgrade
For the last couple of upgrades (I can't remember exactly, but at least to 7.3 and then to 7.4) my Media folders seem empty when queried with:
Umbraco.Media(folderId).Children.Any()
i.e. Any() returns false until I sort the media folder whose Id is folderId. When I sort the folder (not actually rearranging anything, just pressing Sort) and refresh the page, the query returns the correct images and my photo gallery displays.
Fortunately, I found the workaround, but it's tedious to have to sort 30+ folders manually after each upgrade - not to mention the annoyed emails I get when I forget one of them ;-)
Maybe the error has something to do with the fact that my xml Data Integrity Report says:
Umbraco.Media(someId).Children.Any() returns false after upgrade
For the last couple of upgrades (I can't remember exactly, but at least to 7.3 and then to 7.4) my Media folders seem empty when queried with:
i.e. Any() returns false until I sort the media folder whose Id is folderId. When I sort the folder (not actually rearranging anything, just pressing Sort) and refresh the page, the query returns the correct images and my photo gallery displays.
Fortunately, I found the workaround, but it's tedious to have to sort 30+ folders manually after each upgrade - not to mention the annoyed emails I get when I forget one of them ;-)
Maybe the error has something to do with the fact that my xml Data Integrity Report says:
and the FIX button does not actually fix it...
is working on a reply...