Adding a constant for the new field name

This commit is contained in:
Jeavon
2019-10-04 11:17:36 +01:00
parent 72147ab8f2
commit 68866e9faf
4 changed files with 5 additions and 4 deletions

View File

@@ -180,9 +180,9 @@ namespace Umbraco.Web.Models.Mapping
target.Name = source.Values.ContainsKey("nodeName") ? source.Values["nodeName"] : "[no name]";
if (source.Values.ContainsKey("__umbracoFile"))
if (source.Values.ContainsKey(UmbracoExamineIndex.UmbracoFileFieldName))
{
var umbracoFile = source.Values["__umbracoFile"];
var umbracoFile = source.Values[UmbracoExamineIndex.UmbracoFileFieldName];
if (umbracoFile != null)
{
target.Name = $"{target.Name} ({umbracoFile})";