Merge pull request #419 from imulus/fix/u4-5128

Support virtual paths when defining PropertyEditors via Attributes (U4-5128)
This commit is contained in:
Shandem
2014-06-25 09:53:31 +10:00

View File

@@ -114,7 +114,7 @@ namespace Umbraco.Core.PropertyEditors
throw new NotImplementedException("This method must be implemented if a view is not explicitly set");
}
editor.View = _attribute.EditorView;
editor.View = _attribute.EditorView.StartsWith("~/") ? IOHelper.ResolveUrl(_attribute.EditorView) : _attribute.EditorView;
editor.ValueType = _attribute.ValueType;
editor.HideLabel = _attribute.HideLabel;
return editor;