nucache bug fix

This commit is contained in:
Shannon
2019-01-30 17:36:33 +11:00
parent 35b78cc224
commit f02da1fdd2

View File

@@ -100,8 +100,8 @@ namespace Umbraco.Web.PublishedCache.NuCache
var originPublished = origin.PublishedContent;
DraftContent = new PublishedContent(this, originDraft, umbracoContextAccessor);
PublishedContent = new PublishedContent(this, originPublished, umbracoContextAccessor);
DraftContent = originDraft == null ? null : new PublishedContent(this, originDraft, umbracoContextAccessor);
PublishedContent = originPublished == null ? null : new PublishedContent(this, originPublished, umbracoContextAccessor);
DraftModel = DraftContent?.CreateModel();
PublishedModel = PublishedContent?.CreateModel();