Skip to content

Commit ab6af20

Browse files
author
Alex Bomko
committed
MAGETWO-36955: Pull request, Nord team sprint 20
- fix tests
1 parent 87a2216 commit ab6af20

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/Review/Model/Resource/Rating.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,8 @@ protected function processRatingStores(\Magento\Framework\Model\AbstractModel $o
213213
$this->deleteRatingData($ratingId, $table, array_diff_assoc($old, $new));
214214

215215
$insert = [];
216-
foreach (array_diff_assoc($new, $old) as $storeId => $title) {
217-
$insert[] = ['rating_id' => $ratingId, 'store_id' => (int)$storeId, 'value' => $title];
216+
foreach (array_keys(array_diff_assoc($new, $old)) as $storeId) {
217+
$insert[] = ['rating_id' => $ratingId, 'store_id' => (int)$storeId];
218218
}
219219
$this->insertRatingData($table, $insert);
220220
return $this;

0 commit comments

Comments
 (0)