#19797: Selecting a specific content type doesn't show anything in frontend en resulted in exception.

Work Item: 19797

--HG--
branch : 1.x
This commit is contained in:
Kees@Kees-PC
2013-06-13 17:25:12 +02:00
parent 4b41af8f3a
commit c2579f10f3

View File

@@ -48,7 +48,7 @@ namespace Orchard.Taxonomies.Drivers {
var results = query.Join<CommonPartRecord>().OrderByDescending(orderBy);
if(!String.IsNullOrWhiteSpace(part.ContentType)) {
results = results.Where(x => x.ContentItemRecord.ContentType.Name == part.ContentType);
results = results.ForType(part.ContentType).Join<CommonPartRecord>();
}
// build the Summary display for each content item