File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -1028,16 +1028,14 @@ protected function getCustomerGroupSortPriceOverride(
1028
1028
$ attrName = $ origAttr ['attribute ' ];
1029
1029
$ sortDir = $ origAttr ['sort ' ];
1030
1030
$ 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 ;
1040
1032
1033
+ $ newAttr = array_merge (
1034
+ $ origAttr ,
1035
+ ['name ' => $ groupIndexName ]
1036
+ );
1037
+
1038
+ $ groupSortAttribute = $ attrName . '. ' . $ currency . '. ' . $ groupIndexNameSuffix ;
1041
1039
$ newAttr ['ranking ' ] = $ this ->getSortAttributingRankingSetting ($ groupSortAttribute , $ sortDir );
1042
1040
return $ this ->decorateSortAttribute ($ newAttr );
1043
1041
}
You can’t perform that action at this time.
0 commit comments