Skip to content

Commit 848a7c2

Browse files
committed
MAGETWO-95652: Call to \Magento\Framework\Api\MetadataServiceInterface::getCustomAttributesMetadata leads to fatal error
1 parent c2ae024 commit 848a7c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Catalog/Model/FilterProductCustomAttribute.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@ public function __construct(array $blackList = [])
3232
*/
3333
public function execute(array $attributes): array
3434
{
35-
return array_diff($attributes, $this->blackList);
35+
return array_diff_key($attributes, array_flip($this->blackList));
3636
}
3737
}

0 commit comments

Comments
 (0)