Fix optional bool case

pull/4580/head
sephrat 3 years ago
parent 0523c9a3f1
commit 918f248646

@ -62,7 +62,7 @@ namespace Ombi.Core.Rule.Rules.Search
request.Requested = true;
request.Approved = tvRequests.ChildRequests.Any(x => x.Approved);
request.Denied = tvRequests.ChildRequests.Any(x => x.Denied ?? false);
request.DeniedReason = tvRequests.ChildRequests.FirstOrDefault(x => x.Denied == true).DeniedReason;
request.DeniedReason = tvRequests.ChildRequests.FirstOrDefault(x => x.Denied ?? false).DeniedReason;
// Let's modify the seasonsrequested to reflect what we have requested...
foreach (var season in request.SeasonRequests)

Loading…
Cancel
Save