Support virtual paths for PreValueField attributes (U4-6775)

This commit is contained in:
Tom Fulton
2015-06-29 17:48:01 -06:00
parent 56315768e9
commit 048a8683dd

View File

@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using Newtonsoft.Json;
using Umbraco.Core.IO;
using Umbraco.Core.Logging;
using Umbraco.Core.Models;
@@ -84,7 +85,7 @@ namespace Umbraco.Core.PropertyEditors
Name = att.Name,
Description = att.Description,
HideLabel = att.HideLabel,
View = att.View
View = att.View.StartsWith("~/") ? IOHelper.ResolveUrl(att.View) : att.View
};
}