mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-08 06:00:50 -07:00
Fixed bugs with the 'other' reporting issue and also the clear issues
This commit is contained in:
parent
a734755ede
commit
22fe944c43
1 changed files with 2 additions and 2 deletions
|
@ -59,7 +59,7 @@ namespace PlexRequests.UI.Modules
|
|||
Post["/reportissue"] = _ => ReportIssue((int)Request.Form.requestId, (IssueState)(int)Request.Form.issue, null);
|
||||
Post["/reportissuecomment"] = _ => ReportIssue((int)Request.Form.requestId, IssueState.Other, (string)Request.Form.commentArea);
|
||||
|
||||
Post["/clearissues"] = _ => ClearIssue((int)Request.Form.requestId);
|
||||
Post["/clearissues"] = _ => ClearIssue((int)Request.Form.Id);
|
||||
|
||||
}
|
||||
private IRepository<RequestedModel> Service { get; }
|
||||
|
@ -156,7 +156,7 @@ namespace PlexRequests.UI.Modules
|
|||
return Response.AsJson(new JsonResponseModel { Result = false, Message = "Could not add issue, please try again or contact the administrator!" });
|
||||
}
|
||||
originalRequest.Issues = issue;
|
||||
originalRequest.OtherMessage = string.IsNullOrEmpty(comment)
|
||||
originalRequest.OtherMessage = !string.IsNullOrEmpty(comment)
|
||||
? $"{Session[SessionKeys.UsernameKey]} - {comment}"
|
||||
: string.Empty;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue