Adds default value support to Path data editor setting type

This commit is contained in:
starfighter83
2011-07-26 08:25:39 -02:00
parent d8eb584d7a
commit 98a1189353

View File

@@ -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;
}
}