Fixes #5593 : Dynamic Forms: In form settings HtmlEncode option is always checked

This commit is contained in:
Thierry Fleury
2016-01-23 10:32:22 +01:00
parent 899379e94a
commit f3971484b8
2 changed files with 1 additions and 2 deletions

View File

@@ -83,7 +83,6 @@ namespace Orchard.DynamicForms.Drivers {
Name: "HtmlEncode",
Title: "Html Encode",
Value: "true",
Checked: true,
Description: T("Check this option to automatically HTML encode submitted values to prevent code injection.")),
_CreateContent: shape.Checkbox(
Id: "CreateContent",

View File

@@ -33,7 +33,7 @@ namespace Orchard.DynamicForms.Elements {
}
public bool HtmlEncode {
get { return this.Retrieve(x => x.HtmlEncode, () => true); }
get { return this.Retrieve(x => x.HtmlEncode); }
set { this.Store(x => x.HtmlEncode, value); }
}