File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed
app/code/Magento/SalesRule/Model/Plugin Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -42,19 +42,11 @@ public function __construct(RuleResource $ruleResource)
42
42
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
43
43
*/
44
44
public function afterGetProductAttributes (Config $ subject , array $ attributeKeys ): array
45
- {
46
- return array_merge ($ attributeKeys , $ this ->getActiveAttributeCodes ());
47
- }
48
-
49
- /**
50
- * @return array
51
- */
52
- private function getActiveAttributeCodes (): array
53
45
{
54
46
if ($ this ->activeAttributeCodes === null ) {
55
47
$ this ->activeAttributeCodes = array_column ($ this ->ruleResource ->getActiveAttributes (), 'attribute_code ' );
56
48
}
57
49
58
- return $ this ->activeAttributeCodes ;
50
+ return array_merge ( $ attributeKeys , $ this ->activeAttributeCodes ) ;
59
51
}
60
52
}
You can’t perform that action at this time.
0 commit comments