mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Fixing nullable fields storage
--HG-- branch : 1.x
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
1e6a2d32657e96db406ad54c318e09c1fe2ed889 src/Orchard.Web/Modules/Orchard.Forms
|
||||
115f4dec6bb0825b82e291d1882da620969fd4be src/Orchard.Web/Modules/Orchard.Projections
|
||||
31d911600199140e570c5adac5a7a7b873b58532 src/Orchard.Web/Modules/Orchard.Projections
|
||||
15cec8c8d8791c108e1f63f40b2357c6bc6605e7 src/Orchard.Web/Modules/Orchard.Rules
|
||||
65057c6a5cd71f7994ba9bcbeece50dbb737620e src/Orchard.Web/Modules/Orchard.TaskLease
|
||||
ebdcbf2c57f9f888dcdc2b577a1e9c6e8f9c1957 src/Orchard.Web/Modules/Orchard.Tokens
|
||||
|
@@ -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