mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-01-23 13:22:08 +08:00
8599 nullable field values (#8600)
* Added nullable type to DescribeMemberContext for BooleanField and NumericField. * Rollback of nullable member value for NumericFieldDriver, which is unnecessary because Editor function doesn't let a null value to be saved.
This commit is contained in:
committed by
GitHub
parent
c38e6814a9
commit
343ceb777b
@@ -67,7 +67,7 @@ namespace Orchard.Fields.Drivers {
|
|||||||
|
|
||||||
protected override void Describe(DescribeMembersContext context) {
|
protected override void Describe(DescribeMembersContext context) {
|
||||||
context
|
context
|
||||||
.Member(null, typeof(Boolean), T("Value"), T("The boolean value of the field."))
|
.Member(null, typeof(Boolean?), T("Value"), T("The boolean value of the field."))
|
||||||
.Enumerate<BooleanField>(() => field => new [] { field.Value })
|
.Enumerate<BooleanField>(() => field => new [] { field.Value })
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user