From b5a2b3dbbdc5947075dfa6f4acfbff0cde837be1 Mon Sep 17 00:00:00 2001 From: Shannon Date: Tue, 9 Feb 2016 10:56:15 +0100 Subject: [PATCH] U4-7922 Preview is not working --- src/Umbraco.Web/UmbracoContext.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Umbraco.Web/UmbracoContext.cs b/src/Umbraco.Web/UmbracoContext.cs index fca5ff2371..50788c4b2e 100644 --- a/src/Umbraco.Web/UmbracoContext.cs +++ b/src/Umbraco.Web/UmbracoContext.cs @@ -133,7 +133,7 @@ namespace Umbraco.Web UmbracoContext.Current._replacing = true; } - var umbracoContext = CreateContext(httpContext, applicationContext, webSecurity, umbracoSettings, urlProviders, preview ?? false); + var umbracoContext = CreateContext(httpContext, applicationContext, webSecurity, umbracoSettings, urlProviders, preview); //assign the singleton UmbracoContext.Current = umbracoContext; @@ -158,7 +158,7 @@ namespace Umbraco.Web WebSecurity webSecurity, IUmbracoSettingsSection umbracoSettings, IEnumerable urlProviders, - bool preview) + bool? preview) { if (httpContext == null) throw new ArgumentNullException("httpContext"); if (applicationContext == null) throw new ArgumentNullException("applicationContext");