Fixes an issue with empty string conversions to date time - should fail
This commit is contained in:
@@ -198,7 +198,7 @@ namespace Umbraco.Core
|
||||
if (destinationType == typeof(Boolean))
|
||||
return Attempt<object>.Succeed(false); // special case for booleans, null/empty == false
|
||||
else if (destinationType == typeof(DateTime))
|
||||
return Attempt<object>.Succeed(DateTime.MinValue);
|
||||
return Attempt<object>.Succeed(false);
|
||||
}
|
||||
|
||||
// we have a non-empty string, look for type conversions in the expected order of frequency of use...
|
||||
|
||||
Reference in New Issue
Block a user