Skip to content

Commit

Permalink
#3916 mapping to a IEnumerable resulted in all items in the result li…
Browse files Browse the repository at this point in the history
  • Loading branch information
dawoe authored and nul800sebastiaan committed Dec 31, 2018
1 parent b852c78 commit 0ce5484
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Umbraco.Web/Editors/LogController.cs
Expand Up @@ -27,7 +27,7 @@ public class LogController : UmbracoAuthorizedJsonController
long totalRecords;
var dateQuery = sinceDate.HasValue ? Query<IAuditItem>.Builder.Where(x => x.CreateDate >= sinceDate) : null;
var result = Services.AuditService.GetPagedItemsByEntity(id, pageNumber - 1, pageSize, out totalRecords, orderDirection, customFilter: dateQuery);
var mapped = Mapper.Map<IEnumerable<AuditLog>>(result);
var mapped = result.Select(item => Mapper.Map<AuditLog>(item)); // Mapper.Map<IEnumerable<AuditLog>>(result);

var page = new PagedResult<AuditLog>(totalRecords, pageNumber, pageSize)
{
Expand Down

0 comments on commit 0ce5484

Please sign in to comment.