Adds default value support to RadioButtonList data editor setting type
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user