Skip to content

Commit

Permalink
Merge pull request #4 from magento-hackathon/fix-static-attributes
Browse files Browse the repository at this point in the history
Ignore static attributes, fixes #3
  • Loading branch information
sprankhub authored Jan 25, 2022
2 parents 52f0136 + 7a4d7a2 commit 91109e0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Console/Command/RemoveUnusedAttributesCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ public function execute(InputInterface $input, OutputInterface $output)
$deleted = 0;
$searchCriteria = $this->searchCriteriaBuilderFactory->create()
->addFilter('is_user_defined', 1)
->addFilter('backend_type', 'static', 'neq')
->create();
$attributes = $this->attributeRepository
->getList(ProductAttributeInterface::ENTITY_TYPE_CODE, $searchCriteria)
Expand Down

0 comments on commit 91109e0

Please sign in to comment.