Skip to content

Commit 46e930a

Browse files
Merge remote-tracking branch '37562/37561-do-not-load-shipment-creditmemo-collections' into commprs_feb
2 parents 2b17d9b + e75c199 commit 46e930a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/Sales/Model/Order.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2001,7 +2001,7 @@ public function getShipmentsCollection()
20012001
{
20022002
if (empty($this->_shipments)) {
20032003
if ($this->getId()) {
2004-
$this->_shipments = $this->_shipmentCollectionFactory->create()->setOrderFilter($this)->load();
2004+
$this->_shipments = $this->_shipmentCollectionFactory->create()->setOrderFilter($this);
20052005
} else {
20062006
return false;
20072007
}
@@ -2018,7 +2018,7 @@ public function getCreditmemosCollection()
20182018
{
20192019
if (empty($this->_creditmemos)) {
20202020
if ($this->getId()) {
2021-
$this->_creditmemos = $this->_memoCollectionFactory->create()->setOrderFilter($this)->load();
2021+
$this->_creditmemos = $this->_memoCollectionFactory->create()->setOrderFilter($this);
20222022
} else {
20232023
return false;
20242024
}

0 commit comments

Comments
 (0)