Handle checkbox value conversion from Nested Content

This commit is contained in:
Kenn Jacobsen
2019-03-02 07:56:34 +01:00
committed by Sebastiaan Janssen
parent f54a8725db
commit 2352b50d97

View File

@@ -36,6 +36,10 @@ namespace Umbraco.Core.PropertyEditors.ValueConverters
if (source is int)
return (int)source == 1;
// this is required for correct true/false handling in nested content elements
if (source is long)
return (long)source == 1;
if (source is bool)
return (bool)source;