Bugfix IContentService.GetPublishedVersion

This commit is contained in:
Stephan
2015-02-10 19:15:23 +01:00
parent a72fae333a
commit b7eb81dc76

View File

@@ -643,6 +643,7 @@ namespace Umbraco.Core.Services
/// <returns>The published version, if any; otherwise, null.</returns>
public IContent GetPublishedVersion(IContent content)
{
if (content.Published) return content;
return content.HasPublishedVersion
? GetByVersion(content.PublishedVersionGuid)
: null;