Fixes issue related to moving PropertyTypes between tabs.

Ensures that the right tabs with the right ids are loaded in the dropdown.
This commit is contained in:
Morten Christensen
2013-02-26 13:31:29 -01:00
parent e9b2261aab
commit fef96e8b43
5 changed files with 52 additions and 14 deletions

View File

@@ -62,8 +62,8 @@ namespace umbraco.editorControls
base.DataSource = dropdownData;
base.DataBind();
base.Items.Insert(0, new ListItem(ui.Text("choose") + "...",""));
base.SelectedValue = _data.Value.ToString();
base.SelectedValue = _data.Value != null ? _data.Value.ToString() : "";
// Iterate on the control items and mark fields by match them with the Text property!
//foreach(ListItem li in base.Items)