Handle checkbox value conversion from Nested Content

(cherry picked from commit 2352b50d97)
This commit is contained in:
Kenn Jacobsen
2019-03-02 07:56:34 +01:00
committed by Sebastiaan Janssen
parent 39a97fb768
commit 29ff7bc340

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;