Skip to content

Commit c02716c

Browse files
authored
Fix setData function calls due to dependencies
setData is expected to be called from various dependencies where addData is being used, so the original change has been reverted.
1 parent 3e494de commit c02716c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/Magento/Framework/DataObject.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function addData(array $arr)
5757
}
5858

5959
foreach ($arr as $index => $value) {
60-
$this->_data[$index] = $value;
60+
$this->setData($index, $value);
6161
}
6262
return $this;
6363
}

0 commit comments

Comments
 (0)