Skip to content

Commit 98c131b

Browse files
Fixed display problem with saved IP addresses
1 parent 4c6bd12 commit 98c131b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Presentation/SmartStore.Web/Administration/Controllers/CustomerController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ protected virtual void PrepareCustomerModelForEdit(CustomerModel model, Customer
259259
model.VatNumberStatusNote = ((VatNumberStatus)customer.VatNumberStatusId).GetLocalizedEnum(Services.Localization, Services.WorkContext);
260260
model.CreatedOn = Services.DateTimeHelper.ConvertToUserTime(customer.CreatedOnUtc, DateTimeKind.Utc);
261261
model.LastActivityDate = Services.DateTimeHelper.ConvertToUserTime(customer.LastActivityDateUtc, DateTimeKind.Utc);
262-
model.LastIpAddress = model.LastIpAddress;
262+
model.LastIpAddress = customer.LastIpAddress;
263263
model.LastVisitedPage = customer.GetAttribute<string>(SystemCustomerAttributeNames.LastVisitedPage);
264264

265265
foreach (var tzi in Services.DateTimeHelper.GetSystemTimeZones())

0 commit comments

Comments
 (0)