From 129788dea8ad04758a7c5487d629fa6aca58e369 Mon Sep 17 00:00:00 2001 From: Oleg Zhuk Date: Mon, 8 Jan 2024 19:47:10 +0200 Subject: [PATCH] PT-15075: 500 when user try to delete quote 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 e26b0b55..83920193 100644 --- a/src/VirtoCommerce.QuoteModule.Data/Services/QuoteRequestService.cs +++ b/src/VirtoCommerce.QuoteModule.Data/Services/QuoteRequestService.cs @@ -227,7 +227,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();