Skip to content

Commit

Permalink
#3232 Fixed customer class
Browse files Browse the repository at this point in the history
  • Loading branch information
RuS984 committed Sep 10, 2018
1 parent 0993ddc commit 739d92b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Libraries/Nop.Core/Domain/Customers/Customer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public virtual ICollection<ExternalAuthenticationRecord> ExternalAuthenticationR
/// </summary>
public virtual IList<CustomerRole> CustomerRoles
{
get => CustomerCustomerRoleMappings.Select(mapping => mapping.CustomerRole).ToList();
get => _customerRoles ?? (_customerRoles = CustomerCustomerRoleMappings.Select(mapping => mapping.CustomerRole).ToList());
}

/// <summary>
Expand Down

0 comments on commit 739d92b

Please sign in to comment.