From 22fe944c43d319ec4d51946fd02b3ab8127743e7 Mon Sep 17 00:00:00 2001 From: tidusjar Date: Thu, 10 Mar 2016 08:51:38 +0000 Subject: [PATCH] Fixed bugs with the 'other' reporting issue and also the clear issues --- PlexRequests.UI/Modules/RequestsModule.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PlexRequests.UI/Modules/RequestsModule.cs b/PlexRequests.UI/Modules/RequestsModule.cs index bd9664720..3b8c9b6a4 100644 --- a/PlexRequests.UI/Modules/RequestsModule.cs +++ b/PlexRequests.UI/Modules/RequestsModule.cs @@ -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 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;