From 271056f9976cfb4c4945e5a2827c07293eaaa212 Mon Sep 17 00:00:00 2001 From: Claus Date: Thu, 6 Jul 2017 12:48:47 +0200 Subject: [PATCH] mapping media start nodes instead of mapping content twice. --- src/Umbraco.Web/Models/Mapping/UserModelMapper.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Umbraco.Web/Models/Mapping/UserModelMapper.cs b/src/Umbraco.Web/Models/Mapping/UserModelMapper.cs index 9972487b30..f33d00b6b4 100644 --- a/src/Umbraco.Web/Models/Mapping/UserModelMapper.cs +++ b/src/Umbraco.Web/Models/Mapping/UserModelMapper.cs @@ -260,10 +260,10 @@ namespace Umbraco.Web.Models.Mapping var contentItems = applicationContext.Services.EntityService.GetAll(UmbracoObjectTypes.Document, startContentIds); display.StartContentIds = Mapper.Map, IEnumerable>(contentItems); } - var startMediaIds = user.StartContentIds.ToArray(); + var startMediaIds = user.StartMediaIds.ToArray(); if (startMediaIds.Length > 0) { - var mediaItems = applicationContext.Services.EntityService.GetAll(UmbracoObjectTypes.Document, startMediaIds); + var mediaItems = applicationContext.Services.EntityService.GetAll(UmbracoObjectTypes.Media, startMediaIds); display.StartMediaIds = Mapper.Map, IEnumerable>(mediaItems); } });