From 8334e20bbfec8a053be92be957b0f50aebb7a999 Mon Sep 17 00:00:00 2001 From: James Kolpack Date: Tue, 14 Jul 2020 21:24:05 -0400 Subject: [PATCH] Now Boolean is fixed? Time will only tell. --- WebCms/Views/Shared/EditorTemplates/Boolean.cshtml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WebCms/Views/Shared/EditorTemplates/Boolean.cshtml b/WebCms/Views/Shared/EditorTemplates/Boolean.cshtml index 6565d6d..1af9085 100644 --- a/WebCms/Views/Shared/EditorTemplates/Boolean.cshtml +++ b/WebCms/Views/Shared/EditorTemplates/Boolean.cshtml @@ -1,4 +1,4 @@ -@model Boolean +@model Boolean? @{ Layout = "_FieldLayout.cshtml"; @@ -12,5 +12,5 @@ @Html.CheckBox( "", - Model, + Model.HasValue && Model.Value, htmlAttributes)