Ensures the right type is tracked for links ensures relations are removed.

This commit is contained in:
Shannon
2019-10-25 14:33:40 +11:00
parent 15865d566b
commit 25c2eed888
3 changed files with 13 additions and 5 deletions

View File

@@ -144,7 +144,7 @@ namespace Umbraco.Web.PropertyEditors
yield return new UmbracoEntityReference(udi, Constants.Conventions.RelationTypes.RelatedMediaAlias);
foreach (var udi in _localLinkParser.FindUdisFromLocalLinks(asString))
yield return new UmbracoEntityReference(udi, Constants.Conventions.RelationTypes.RelatedMediaAlias);
yield return new UmbracoEntityReference(udi, Constants.Conventions.RelationTypes.RelatedDocumentAlias);
//TODO: Detect Macros too ... but we can save that for a later date, right now need to do media refs
}