mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-14 01:02:57 -07:00
Fixed #270
This commit is contained in:
parent
605878700d
commit
c43e3a93d2
3 changed files with 4 additions and 3 deletions
|
@ -196,7 +196,7 @@ namespace PlexRequests.UI.Modules
|
||||||
{
|
{
|
||||||
dbTv = t.Result.ToList();
|
dbTv = t.Result.ToList();
|
||||||
|
|
||||||
if (settings.UsersCanViewOnlyOwnRequests && !IsAdmin)
|
if (settings.UsersCanViewOnlyOwnRequests && !IsAdmin)
|
||||||
{
|
{
|
||||||
dbTv = dbTv.Where(x => x.UserHasRequested(Username)).ToList();
|
dbTv = dbTv.Where(x => x.UserHasRequested(Username)).ToList();
|
||||||
}
|
}
|
||||||
|
|
|
@ -627,7 +627,7 @@ namespace PlexRequests.UI.Modules
|
||||||
RequestedUsers = new List<string> { Username },
|
RequestedUsers = new List<string> { Username },
|
||||||
Issues = IssueState.None,
|
Issues = IssueState.None,
|
||||||
ImdbId = showInfo.externals?.imdb ?? string.Empty,
|
ImdbId = showInfo.externals?.imdb ?? string.Empty,
|
||||||
SeasonCount = showInfo.seasonCount
|
SeasonCount = showInfo.seasonCount,
|
||||||
};
|
};
|
||||||
|
|
||||||
var seasonsList = new List<int>();
|
var seasonsList = new List<int>();
|
||||||
|
@ -645,6 +645,7 @@ namespace PlexRequests.UI.Modules
|
||||||
model.SeasonsRequested = "All";
|
model.SeasonsRequested = "All";
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
model.SeasonsRequested = seasons;
|
||||||
var split = seasons.Split(new[] { ',' }, StringSplitOptions.RemoveEmptyEntries);
|
var split = seasons.Split(new[] { ',' }, StringSplitOptions.RemoveEmptyEntries);
|
||||||
var seasonsCount = new int[split.Length];
|
var seasonsCount = new int[split.Length];
|
||||||
for (var i = 0; i < split.Length; i++)
|
for (var i = 0; i < split.Length; i++)
|
||||||
|
|
|
@ -169,7 +169,7 @@
|
||||||
{{/if_eq}}
|
{{/if_eq}}
|
||||||
</div>
|
</div>
|
||||||
{{#if_eq type "tv"}}
|
{{#if_eq type "tv"}}
|
||||||
<div>Series Requested: {{seriesRequested}}</div>
|
<div>Seasons Requested: {{seriesRequested}}</div>
|
||||||
{{/if_eq}}
|
{{/if_eq}}
|
||||||
{{#if requestedUsers}}
|
{{#if requestedUsers}}
|
||||||
<div>Requested By: {{requestedUsers}}</div>
|
<div>Requested By: {{requestedUsers}}</div>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue