diff --git a/Core/Resgrid.Services/CalendarService.cs b/Core/Resgrid.Services/CalendarService.cs index 9f6016ae..a1a41796 100644 --- a/Core/Resgrid.Services/CalendarService.cs +++ b/Core/Resgrid.Services/CalendarService.cs @@ -70,7 +70,7 @@ public async Task> GetAllCalendarItemTypesForDepartmentAs public async Task> GetUpcomingCalendarItemsAsync(int departmentId, DateTime start) { - return await GetAllCalendarItemsForDepartmentInRangeAsync(departmentId, start, start.AddDays(7)); + return await GetAllCalendarItemsForDepartmentInRangeAsync(departmentId, start, start.AddDays(14)); } public async Task SaveCalendarItemAsync(CalendarItem calendarItem, CancellationToken cancellationToken = default(CancellationToken)) diff --git a/Web/Resgrid.Web.Services/Controllers/TwilioController.cs b/Web/Resgrid.Web.Services/Controllers/TwilioController.cs index a4238c66..f6752ecb 100644 --- a/Web/Resgrid.Web.Services/Controllers/TwilioController.cs +++ b/Web/Resgrid.Web.Services/Controllers/TwilioController.cs @@ -317,7 +317,7 @@ public async Task IncomingMessage([FromQuery] TwilioMessage reques foreach (var activeCall in activeCalls) { - activeCallText.Append($"CallId: {activeCall.CallId} Name: {activeCall.Name} Nature:{activeCall.NatureOfCall}" + Environment.NewLine); + activeCallText.Append($"CallId: {activeCall.CallId} Name: {activeCall.Name} Nature:{StringHelpers.StripHtmlTagsCharArray(activeCall.NatureOfCall)}" + Environment.NewLine); } response.Message(activeCallText.ToString().Truncate(1200)); @@ -520,7 +520,7 @@ public async Task VoiceCall(string userId, int callId) StringBuilder sb = new StringBuilder(); if (!String.IsNullOrWhiteSpace(address)) - sb.Append(string.Format("{0}, Priority {1} Address {2} Nature {3}", call.Name, call.GetPriorityText(), call.Address, call.NatureOfCall)); + sb.Append(string.Format("{0}, Priority {1} Address {2} Nature {3}", call.Name, call.GetPriorityText(), call.Address, StringHelpers.StripHtmlTagsCharArray(call.NatureOfCall))); else sb.Append(string.Format("{0}, Priority {1} Nature {2}", call.Name, call.GetPriorityText(), call.NatureOfCall)); @@ -710,7 +710,7 @@ public async Task InboundVoiceAction(string userId, [FromQuery] Vo foreach (var call in calls) { - sb.Append($"{call.Name}, Priority {call.GetPriorityText()} Address {call.Address} Nature {call.NatureOfCall}."); + sb.Append($"{call.Name}, Priority {call.GetPriorityText()} Address {call.Address} Nature {StringHelpers.StripHtmlTagsCharArray(call.NatureOfCall)}."); } } else diff --git a/Web/Resgrid.Web/Areas/User/Views/Shared/_UserLayout.cshtml b/Web/Resgrid.Web/Areas/User/Views/Shared/_UserLayout.cshtml index a73bec22..d8539c28 100644 --- a/Web/Resgrid.Web/Areas/User/Views/Shared/_UserLayout.cshtml +++ b/Web/Resgrid.Web/Areas/User/Views/Shared/_UserLayout.cshtml @@ -65,8 +65,18 @@