From c43e3a93d2b879ad837239936f69bcf498829827 Mon Sep 17 00:00:00 2001 From: tidusjar Date: Thu, 26 May 2016 08:56:36 +0100 Subject: [PATCH] Fixed #270 --- PlexRequests.UI/Modules/RequestsModule.cs | 2 +- PlexRequests.UI/Modules/SearchModule.cs | 3 ++- PlexRequests.UI/Views/Requests/Index.cshtml | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/PlexRequests.UI/Modules/RequestsModule.cs b/PlexRequests.UI/Modules/RequestsModule.cs index f813c038d..64e150f58 100644 --- a/PlexRequests.UI/Modules/RequestsModule.cs +++ b/PlexRequests.UI/Modules/RequestsModule.cs @@ -196,7 +196,7 @@ namespace PlexRequests.UI.Modules { dbTv = t.Result.ToList(); - if (settings.UsersCanViewOnlyOwnRequests && !IsAdmin) + if (settings.UsersCanViewOnlyOwnRequests && !IsAdmin) { dbTv = dbTv.Where(x => x.UserHasRequested(Username)).ToList(); } diff --git a/PlexRequests.UI/Modules/SearchModule.cs b/PlexRequests.UI/Modules/SearchModule.cs index efae9678a..97c9ada30 100644 --- a/PlexRequests.UI/Modules/SearchModule.cs +++ b/PlexRequests.UI/Modules/SearchModule.cs @@ -627,7 +627,7 @@ namespace PlexRequests.UI.Modules RequestedUsers = new List { Username }, Issues = IssueState.None, ImdbId = showInfo.externals?.imdb ?? string.Empty, - SeasonCount = showInfo.seasonCount + SeasonCount = showInfo.seasonCount, }; var seasonsList = new List(); @@ -645,6 +645,7 @@ namespace PlexRequests.UI.Modules model.SeasonsRequested = "All"; break; default: + model.SeasonsRequested = seasons; var split = seasons.Split(new[] { ',' }, StringSplitOptions.RemoveEmptyEntries); var seasonsCount = new int[split.Length]; for (var i = 0; i < split.Length; i++) diff --git a/PlexRequests.UI/Views/Requests/Index.cshtml b/PlexRequests.UI/Views/Requests/Index.cshtml index cdf45b288..d61f8b070 100644 --- a/PlexRequests.UI/Views/Requests/Index.cshtml +++ b/PlexRequests.UI/Views/Requests/Index.cshtml @@ -169,7 +169,7 @@ {{/if_eq}} {{#if_eq type "tv"}} -
Series Requested: {{seriesRequested}}
+
Seasons Requested: {{seriesRequested}}
{{/if_eq}} {{#if requestedUsers}}
Requested By: {{requestedUsers}}