-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
55fcccd
commit fa06767
Showing
5 changed files
with
51 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
using System; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using VirtoCommerce.Domain.Commerce.Model; | ||
|
@@ -25,9 +25,6 @@ public virtual orderModel.CustomerOrder PlaceCustomerOrderFromCart(cartModel.Sho | |
{ | ||
var customerOrder = ConvertCartToOrder(cart); | ||
_customerOrderService.SaveChanges(new[] { customerOrder }); | ||
|
||
customerOrder = _customerOrderService.GetByIds(new[] { customerOrder.Id }).FirstOrDefault(); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
tatarincev
Author
Contributor
|
||
|
||
return customerOrder; | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@tatarincev If I remember correctly, this call to retrieve the order again may be necessary since OrderChangedHandlers may have updated the order during the event that happens inside of
_customerOrderService.SaveChanges()
. I know that we have a handler that does that for new orders.