Fixing PathResolutionService

This commit is contained in:
Sebastien Ros 2014-04-28 13:19:40 -07:00
parent 15cdb77938
commit 20a120c657

View File

@ -17,7 +17,7 @@ namespace Orchard.Autoroute.Services {
public AutoroutePart GetPath(string path) {
var autorouteRecord = _autorouteRepository.Table
.Where(part => part.DisplayAlias == path && part.ContentItemVersionRecord.Latest && part.ContentItemVersionRecord.Published)
.Where(part => part.DisplayAlias == path && part.ContentItemVersionRecord.Published)
.FirstOrDefault();
if (autorouteRecord == null) {