U4-7063 - Umbraco.TypedContent(ints) should not return nulls

This commit is contained in:
Stephan
2015-09-04 10:42:56 +02:00
parent 1fdb813d1d
commit a542cf56d4
4 changed files with 232 additions and 27 deletions

View File

@@ -211,7 +211,7 @@ namespace Umbraco.Web
private IEnumerable<IPublishedContent> TypedDocumentsByIds(ContextualPublishedCache cache, IEnumerable<int> ids)
{
return ids.Select(eachId => TypedDocumentById(eachId, cache));
return ids.Select(eachId => TypedDocumentById(eachId, cache)).WhereNotNull();
}
private IEnumerable<IPublishedContent> TypedDocumentsByXPath(string xpath, XPathVariable[] vars, ContextualPublishedContentCache cache)