-
Notifications
You must be signed in to change notification settings - Fork 53
Conversation
@@ -42,8 +42,7 @@ public function execute(Observer $observer) | |||
{ | |||
/** @var OrderInterface $order */ | |||
$order = $observer->getEvent()->getOrder(); | |||
|
|||
$quote = $this->quoteRepository->get($order->getQuoteId()); | |||
$quote = $observer->getEvent()->getQuote(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@paveq , are you sure this is correctly working?
We intentionally loaded it from DB because it was not correctly working on our old Magento 2.0.7 installation, we had an empty quote object. Maybe a fixed bug?
We just tried on 2.1.0, it is not working properly. What is the version you tried? |
I tried on 2.1.1 EE. What does $quote object in your case contain? Maybe we could have check that if it is null, then we retrieve from quoteRepository. |
@paveq, it was just empty, but I'm seeing it works on 2.1.0, so it should be correct. Something not working on |
Ok, it does not work the first time you load, if you refresh it is working... We are checking it. |
Fixes bugs:
Improves: