From 98a11893536bde7276cd55faddb5da666e20aca7 Mon Sep 17 00:00:00 2001 From: starfighter83 Date: Tue, 26 Jul 2011 08:25:39 -0200 Subject: [PATCH] Adds default value support to Path data editor setting type --- components/editorControls/SettingControls/Pickers/Path.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/components/editorControls/SettingControls/Pickers/Path.cs b/components/editorControls/SettingControls/Pickers/Path.cs index ae63867fef..5f4197b548 100644 --- a/components/editorControls/SettingControls/Pickers/Path.cs +++ b/components/editorControls/SettingControls/Pickers/Path.cs @@ -32,7 +32,11 @@ namespace umbraco.editorControls.SettingControls.Pickers pp.ID = sender.GetName().Replace(" ", "_"); - pp.Value = _val; + if (string.IsNullOrEmpty(_val) && !string.IsNullOrEmpty(DefaultValue)) + pp.Value = DefaultValue; + else + pp.Value = _val; + return pp; } }