Fixes: U4-7660 [7.4 Fix] Added a default value to the Umbaco.TrueFalse datatype. Thanks Jeremy Pyne

This commit is contained in:
Mads Rasmussen
2016-02-18 11:20:04 +01:00
parent 51ed441b85
commit dbb9386d22
2 changed files with 17 additions and 2 deletions

View File

@@ -6,5 +6,15 @@ namespace Umbraco.Web.PropertyEditors
[PropertyEditor(Constants.PropertyEditors.TrueFalseAlias, "True/False", "INT", "boolean", IsParameterEditor = true, Group = "Common", Icon="icon-checkbox")]
public class TrueFalsePropertyEditor : PropertyEditor
{
protected override PreValueEditor CreatePreValueEditor()
{
return new TrueFalsePreValueEditor();
}
internal class TrueFalsePreValueEditor : PreValueEditor
{
[PreValueField("default", "Default Value", "boolean")]
public string Default { get; set; }
}
}
}