We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87a2216 commit ab6af20Copy full SHA for ab6af20
app/code/Magento/Review/Model/Resource/Rating.php
@@ -213,8 +213,8 @@ protected function processRatingStores(\Magento\Framework\Model\AbstractModel $o
213
$this->deleteRatingData($ratingId, $table, array_diff_assoc($old, $new));
214
215
$insert = [];
216
- foreach (array_diff_assoc($new, $old) as $storeId => $title) {
217
- $insert[] = ['rating_id' => $ratingId, 'store_id' => (int)$storeId, 'value' => $title];
+ foreach (array_keys(array_diff_assoc($new, $old)) as $storeId) {
+ $insert[] = ['rating_id' => $ratingId, 'store_id' => (int)$storeId];
218
}
219
$this->insertRatingData($table, $insert);
220
return $this;
0 commit comments