Skip to content

Commit

Permalink
Load history changes only for unique objects
Browse files Browse the repository at this point in the history
  • Loading branch information
tatarincev committed Feb 1, 2017
1 parent 43d23c9 commit 0712bac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion VirtoCommerce.Platform.Data/ChangeLog/ChangeLogService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public ChangeLogService(Func<IPlatformRepository> platformRepositoryFactory)

public void LoadChangeLogs(IHasChangesHistory owner)
{
var objectsWithChangesHistory = owner.GetFlatObjectsListWithInterface<IHasChangesHistory>();
var objectsWithChangesHistory = owner.GetFlatObjectsListWithInterface<IHasChangesHistory>().Distinct();

foreach (var objectWithChangesHistory in objectsWithChangesHistory)
{
Expand Down

0 comments on commit 0712bac

Please sign in to comment.