From 0243193769ff157e681dcc6036ca8c792e8af7d8 Mon Sep 17 00:00:00 2001 From: Oleg Zhuk Date: Wed, 10 Jan 2024 10:59:38 +0200 Subject: [PATCH] PT-15075: 500 when user try to delete quote (#98) fix: 500 when user try to delete quote --- .../Services/QuoteRequestService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/VirtoCommerce.QuoteModule.Data/Services/QuoteRequestService.cs b/src/VirtoCommerce.QuoteModule.Data/Services/QuoteRequestService.cs index c775d761..71b0598e 100644 --- a/src/VirtoCommerce.QuoteModule.Data/Services/QuoteRequestService.cs +++ b/src/VirtoCommerce.QuoteModule.Data/Services/QuoteRequestService.cs @@ -226,7 +226,7 @@ public virtual async Task DeleteAsync(string[] ids) var dbQuotes = await repository.GetQuoteRequestByIdsAsync(ids); foreach (var dbQuote in dbQuotes) { - changedEntries.Add(new GenericChangedEntry(null, quotes.First(x => x.Id == dbQuote.Id), EntryState.Deleted)); + changedEntries.Add(new GenericChangedEntry(quotes.First(x => x.Id == dbQuote.Id), EntryState.Deleted)); repository.Remove(dbQuote); } repository.UnitOfWork.Commit();