From 738380e32ae1da85e359b1b683e5052665b489cb Mon Sep 17 00:00:00 2001 From: starfighter83 Date: Tue, 26 Jul 2011 08:18:27 -0200 Subject: [PATCH] Adds default value support to CheckBoxList data editor setting type --- components/editorControls/SettingControls/CheckBoxList.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/editorControls/SettingControls/CheckBoxList.cs b/components/editorControls/SettingControls/CheckBoxList.cs index cd719948d0..aa72102ae4 100644 --- a/components/editorControls/SettingControls/CheckBoxList.cs +++ b/components/editorControls/SettingControls/CheckBoxList.cs @@ -51,6 +51,8 @@ namespace umbraco.editorControls.SettingControls } + if (string.IsNullOrEmpty(_val) && !string.IsNullOrEmpty(DefaultValue)) + cbl.SelectedValue = DefaultValue; return cbl;