We have moved to GitHub Issues
Created by Rasmus Fjord 08 Apr 2013, 07:02:19 Updated by Sebastiaan Janssen 21 Apr 2013, 10:11:06
Had a customer calling in about a wierd incident, that i just tested and cannot fix. The customer can pick a folder and then we generate a gallery for them on their product page.
In a gallery 2 mediatypes can occur, "image", and a "youtubeVideo". youtubeVideo contains 1 property, which is just a text field named "youtubeId".
When we do a @myImageFolder.Children.Count() it will first return 10 items(which is fine). If we add a "youtubeVideo" and redo the count it suddenly only returns 1 as a count.
Then if we Sort the folder everything is good.
In the xml only the media id(of the folder) is stored so we ofc do Model.MediaById() through razor.
Perhaps it's related to this? http://issues.umbraco.org/issue/U4-1772
It could easily be. The "youtubevideo" item is ofc created by the good old right click and create. so dunno if there something that the new upload/sort features is doing
Could you please update the "Affected versions" field? Thanks!
Arh sry forgot that. The solution im seeing this on is 4.11.5. Added it to the meta data.
This seems to work fine in the upcoming 4.11.7 and must be related to recent changes made to the indexing of media items. Just to make sure, this is my Razor (non-MVC) code:
Backwards Compatible: True
Affected versions: 4.11.5
Due in version: 4.11.7