reverts the convertible2 back to what it was before

This commit is contained in:
Shannon
2018-02-09 10:08:25 +11:00
parent 17b59cc20f
commit d29b7311fa

View File

@@ -221,7 +221,7 @@ namespace Umbraco.Core
var convertible2 = input as IConvertible;
if (convertible2 != null)
{
return Attempt.Succeed(Convert.ChangeType(convertible2, Nullable.GetUnderlyingType(target) ?? target));
return Attempt.Succeed(Convert.ChangeType(convertible2, target));
}
}
catch (Exception e)