mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Fixing nullable fields storage
--HG-- branch : 1.x
This commit is contained in:
@@ -20,7 +20,7 @@ namespace Orchard.ContentManagement.FieldStorage {
|
||||
var t = typeof (T);
|
||||
|
||||
// the T is nullable, convert using underlying type
|
||||
if(t.GetGenericTypeDefinition() == typeof(Nullable<>)) {
|
||||
if (t.IsGenericType && t.GetGenericTypeDefinition() == typeof(Nullable<>)) {
|
||||
t = Nullable.GetUnderlyingType(t);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user