diff --git a/src/Orchard.Web/Core/Localization/Services/LocalizationService.cs b/src/Orchard.Web/Core/Localization/Services/LocalizationService.cs index fe79e8902..7f440d22f 100644 --- a/src/Orchard.Web/Core/Localization/Services/LocalizationService.cs +++ b/src/Orchard.Web/Core/Localization/Services/LocalizationService.cs @@ -33,13 +33,15 @@ namespace Orchard.Core.Localization.Services { IEnumerable ILocalizationService.GetLocalizations(IContent content) { var localized = content.As(); + //todo: (heskew) get scheduled content as well + if (localized.MasterContentItem != null) - return _contentManager.Query(content.ContentItem.ContentType).Join() + return _contentManager.Query(VersionOptions.Latest, content.ContentItem.ContentType).Join() .List() .Select(i => i.As()) .Where(l => l.Id != content.ContentItem.Id && (l.Id == localized.MasterContentItem.ContentItem.Id || l.MasterContentItem != null && l.MasterContentItem.ContentItem.Id == localized.MasterContentItem.ContentItem.Id)); - return _contentManager.Query(content.ContentItem.ContentType).Join() + return _contentManager.Query(VersionOptions.Latest, content.ContentItem.ContentType).Join() .List() .Select(i => i.As()) .Where(l => l.MasterContentItem != null && l.MasterContentItem.ContentItem.Id == content.ContentItem.Id);