Skip to content

Commit ba7c4ef

Browse files
author
Stanislav Idolov
authored
ENGCOM-3042: [Forwardport] Update shipment collection to unserialize packages attribute after load #18231
2 parents 10fe7da + 917b109 commit ba7c4ef

File tree

1 file changed

+5
-3
lines changed
  • app/code/Magento/Sales/Model/ResourceModel/Order/Shipment

1 file changed

+5
-3
lines changed

app/code/Magento/Sales/Model/ResourceModel/Order/Shipment/Collection.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,16 @@ protected function _construct()
5757
}
5858

5959
/**
60-
* Used to emulate after load functionality for each item without loading them
60+
* Unserialize packages in each item
6161
*
6262
* @return $this
6363
*/
6464
protected function _afterLoad()
6565
{
66-
$this->walk('afterLoad');
66+
foreach ($this->_items as $item) {
67+
$this->getResource()->unserializeFields($item);
68+
}
6769

68-
return $this;
70+
return parent::_afterLoad();
6971
}
7072
}

0 commit comments

Comments
 (0)