Skip to content

Commit d3f13c0

Browse files
committed
MAGETWO-48544: Merge branch 'feature/fix-to-array' of git://github.com/erikhansen/magento2 into MAGETWO-48544
2 parents 16d16ab + 1c2de6a commit d3f13c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Eav/Model/Entity/Collection/AbstractCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1514,7 +1514,7 @@ public function setOrder($attribute, $dir = self::SORT_ORDER_ASC)
15141514
public function toArray($arrAttributes = [])
15151515
{
15161516
$arr = [];
1517-
foreach ($this->_items as $key => $item) {
1517+
foreach ($this->getItems() as $key => $item) {
15181518
$arr[$key] = $item->toArray($arrAttributes);
15191519
}
15201520
return $arr;

0 commit comments

Comments
 (0)