Skip to content

Instantly share code, notes, and snippets.

@jordanvector
Created March 20, 2020 14:55
Show Gist options
  • Save jordanvector/6594836df8db3ce7c97b7d5f9a54fb9d to your computer and use it in GitHub Desktop.
Save jordanvector/6594836df8db3ce7c97b7d5f9a54fb9d to your computer and use it in GitHub Desktop.
diff --git a/vendor/magento/module-quote/Model/ResourceModel/Quote.php b/vendor/magento/module-quote/Model/ResourceModel/Quote.php
index 71026ba3bc0..7f9e9733553 100644
--- a/vendor/magento/module-quote/Model/ResourceModel/Quote.php
+++ b/vendor/magento/module-quote/Model/ResourceModel/Quote.php
@@ -62,6 +62,10 @@ class Quote extends AbstractDb
protected function _getLoadSelect($field, $value, $object)
{
$select = parent::_getLoadSelect($field, $value, $object);
+ if ($this->getIdFieldName() === $field) {
+ return $select;
+ }
+
$storeIds = $object->getSharedStoreIds();
if ($storeIds) {
if ($storeIds != ['*']) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment