From f9f67d4e2e6bf984bc45e097a93be79c4f5a4277 Mon Sep 17 00:00:00 2001 From: starfighter83 Date: Tue, 26 Jul 2011 08:28:12 -0200 Subject: [PATCH] Adds default value support to DocumentType, MediaType, MemberGroup, MemberType data editor setting types --- .../editorControls/SettingControls/Pickers/BasePicker.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/components/editorControls/SettingControls/Pickers/BasePicker.cs b/components/editorControls/SettingControls/Pickers/BasePicker.cs index 478f46ad13..4a455e5e34 100644 --- a/components/editorControls/SettingControls/Pickers/BasePicker.cs +++ b/components/editorControls/SettingControls/Pickers/BasePicker.cs @@ -57,8 +57,10 @@ namespace umbraco.editorControls.SettingControls.Pickers ddl.Items.Insert(0, li); - - ddl.SelectedValue = _val; + if (string.IsNullOrEmpty(_val) && !string.IsNullOrEmpty(DefaultValue)) + ddl.SelectedValue = DefaultValue; + else + ddl.SelectedValue = _val; return ddl; }