From 9baf40becb21a248267a6a6c23061d7b3d3fe4e2 Mon Sep 17 00:00:00 2001 From: LukePulverenti Luke Pulverenti luke pulverenti Date: Sun, 2 Sep 2012 17:55:47 -0400 Subject: [PATCH] Fixed HasPrimaryImage on DTOBaseItem --- MediaBrowser.Api/ApiService.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MediaBrowser.Api/ApiService.cs b/MediaBrowser.Api/ApiService.cs index 8c30f688eb..5ff1b8949a 100644 --- a/MediaBrowser.Api/ApiService.cs +++ b/MediaBrowser.Api/ApiService.cs @@ -41,14 +41,14 @@ namespace MediaBrowser.Api tasks.Add(AttachPeople(dto, item)); } + AttachBasicFields(dto, item, user); + // Make sure all the tasks we kicked off have completed. if (tasks.Count > 0) { await Task.WhenAll(tasks).ConfigureAwait(false); } - AttachBasicFields(dto, item, user); - return dto; } @@ -67,7 +67,7 @@ namespace MediaBrowser.Api dto.HasArt = !string.IsNullOrEmpty(item.ArtImagePath); dto.HasBanner = !string.IsNullOrEmpty(item.BannerImagePath); dto.HasLogo = !string.IsNullOrEmpty(item.LogoImagePath); - dto.HasPrimaryImage = !string.IsNullOrEmpty(item.LogoImagePath); + dto.HasPrimaryImage = !string.IsNullOrEmpty(item.PrimaryImagePath); dto.HasThumb = !string.IsNullOrEmpty(item.ThumbnailImagePath); dto.Id = item.Id; dto.IsNew = item.IsRecentlyAdded(user);