Something gone funky/awol with my commits - remove dupe code :S
This commit is contained in:
@@ -156,18 +156,6 @@ namespace Umbraco.Web.PropertyEditors
|
||||
return base.FromEditor(editorValue, currentValue);
|
||||
}
|
||||
|
||||
public IEnumerable<UmbracoEntityReference> GetReferences(object value)
|
||||
{
|
||||
var asString = value == null ? string.Empty : value is string str ? str : value.ToString();
|
||||
|
||||
if (string.IsNullOrEmpty(asString)) yield break;
|
||||
|
||||
var links = JsonConvert.DeserializeObject<List<MultiUrlPickerValueEditor.LinkDto>>(asString);
|
||||
foreach (var link in links)
|
||||
if (link.Udi != null) // Links can be absolute links without a Udi
|
||||
yield return new UmbracoEntityReference(link.Udi);
|
||||
}
|
||||
|
||||
[DataContract]
|
||||
internal class LinkDto
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user