Skip to content

Commit dcaa0c3

Browse files
committed
MAGE-837 Fix group price attribute clone bug dropping virtualReplica config
1 parent 41bcdec commit dcaa0c3

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

Helper/ConfigHelper.php

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,16 +1028,14 @@ protected function getCustomerGroupSortPriceOverride(
10281028
$attrName = $origAttr['attribute'];
10291029
$sortDir = $origAttr['sort'];
10301030
$groupIndexNameSuffix = 'group_' . $customerGroupId;
1031-
$groupIndexName =
1032-
$originalIndexName . '_' . $attrName . '_' . $groupIndexNameSuffix . '_' . $sortDir;
1033-
$groupSortAttribute = $attrName . '.' . $currency . '.' . $groupIndexNameSuffix;
1034-
$newAttr = [
1035-
'attribute' => $attrName,
1036-
'name' => $groupIndexName,
1037-
'sort' => $sortDir,
1038-
'sortLabel' => $origAttr['sortLabel']
1039-
];
1031+
$groupIndexName = $originalIndexName . '_' . $attrName . '_' . $groupIndexNameSuffix . '_' . $sortDir;
10401032

1033+
$newAttr = array_merge(
1034+
$origAttr,
1035+
['name' => $groupIndexName]
1036+
);
1037+
1038+
$groupSortAttribute = $attrName . '.' . $currency . '.' . $groupIndexNameSuffix;
10411039
$newAttr['ranking'] = $this->getSortAttributingRankingSetting($groupSortAttribute, $sortDir);
10421040
return $this->decorateSortAttribute($newAttr);
10431041
}

0 commit comments

Comments
 (0)