From b7446be08aa0369884d9b89e2e687d9d86ac2fc3 Mon Sep 17 00:00:00 2001 From: starfighter83 Date: Tue, 26 Jul 2011 08:08:40 -0200 Subject: [PATCH] Adds default value support to RadioButtonList data editor setting type --- components/editorControls/SettingControls/RadioButtonList.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/components/editorControls/SettingControls/RadioButtonList.cs b/components/editorControls/SettingControls/RadioButtonList.cs index 2ff04ca6f3..02af61e35f 100644 --- a/components/editorControls/SettingControls/RadioButtonList.cs +++ b/components/editorControls/SettingControls/RadioButtonList.cs @@ -35,7 +35,10 @@ namespace umbraco.editorControls.SettingControls rbl.Items.Add(s); } - rbl.SelectedValue = _val; + if (string.IsNullOrEmpty(_val) && !string.IsNullOrEmpty(DefaultValue)) + rbl.SelectedValue = DefaultValue; + else + rbl.SelectedValue = _val; return rbl; }