We have upgraded a site from Sitefinity 6 to 7 and have had an odd issue show up.
Steps to reproduce:
Create a page that pulls out DynamicContent items using the following code
Type typeOfItem = TypeResolutionService.ResolveType(YOUR_CUSTOM_MODULE_TYPE);
var manager = DynamicModuleManager.GetManager();
IQueryable<DynamicContent> items = manager.GetDataItems(typeOfItem).Where(x => x.Status == ContentLifecycleStatus.Live && x.Visible);
Create a custom content item and save it as a draft. It will not show in items when queried.
Publish this custom content item. It will show in items when queried.
Save this custom content item as a draft. The item will still show in items. The item will show in the Sitefinity backend as draft.
Anyone have any ideas what could be happening?