Adds default value support to ListBox and ListBoxMultiple data editor setting types

This commit is contained in:
starfighter83
2011-07-26 08:15:28 -02:00
parent ff02f5a336
commit 0f84165b2b
2 changed files with 7 additions and 5 deletions

View File

@@ -45,14 +45,13 @@ namespace umbraco.editorControls.SettingControls
if (_val.Contains(s + ";"))
item.Selected = true;
lb.Items.Add(item);
}
if (string.IsNullOrEmpty(_val) && !string.IsNullOrEmpty(DefaultValue))
lb.SelectedValue = DefaultValue;
return lb;
}