Fixed log viewer level filter by correcting binding for provided array of selected values to filter by.

This commit is contained in:
Andy Butland
2020-08-18 11:07:59 +01:00
parent 20c8ae1fa7
commit 1f206766ab

View File

@@ -80,7 +80,7 @@ namespace Umbraco.Web.BackOffice.Controllers
}
[HttpGet]
public PagedResult<LogMessage> GetLogs(string orderDirection = "Descending", int pageNumber = 1, string filterExpression = null, [FromQuery]string[] logLevels = null, [FromQuery] DateTime? startDate = null,[FromQuery] DateTime? endDate = null)
public PagedResult<LogMessage> GetLogs(string orderDirection = "Descending", int pageNumber = 1, string filterExpression = null, [FromQuery(Name = "logLevels[]")]string[] logLevels = null, [FromQuery]DateTime? startDate = null, [FromQuery]DateTime? endDate = null)
{
var logTimePeriod = GetTimePeriod(startDate, endDate);