Skip to content

Commit 0f5b86c

Browse files
author
Marcel Schmidt
committed
Current customer entity should be tracked
1 parent c7e7d00 commit 0f5b86c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Libraries/SmartStore.Services/Customers/CustomerService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ public virtual Customer FindGuestCustomerByClientIdent(string clientIdent = null
447447
IQueryable<Customer> query;
448448
if (DataSettings.Current.IsSqlServer)
449449
{
450-
query = from a in _gaRepository.TableUntracked
450+
query = from a in _gaRepository.Table
451451
join c in _customerRepository.Table on a.EntityId equals c.Id into Customers
452452
from c in Customers.DefaultIfEmpty()
453453
where c.LastActivityDateUtc >= dateFrom
@@ -460,7 +460,7 @@ from c in Customers.DefaultIfEmpty()
460460
}
461461
else
462462
{
463-
query = from a in _gaRepository.TableUntracked
463+
query = from a in _gaRepository.Table
464464
join c in _customerRepository.Table on a.EntityId equals c.Id into Customers
465465
from c in Customers.DefaultIfEmpty()
466466
where c.LastActivityDateUtc >= dateFrom

0 commit comments

Comments
 (0)