Skip to content

Commit 91109e0

Browse files
authored
Merge pull request #4 from magento-hackathon/fix-static-attributes
Ignore static attributes, fixes #3
2 parents 52f0136 + 7a4d7a2 commit 91109e0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Console/Command/RemoveUnusedAttributesCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ public function execute(InputInterface $input, OutputInterface $output)
6363
$deleted = 0;
6464
$searchCriteria = $this->searchCriteriaBuilderFactory->create()
6565
->addFilter('is_user_defined', 1)
66+
->addFilter('backend_type', 'static', 'neq')
6667
->create();
6768
$attributes = $this->attributeRepository
6869
->getList(ProductAttributeInterface::ENTITY_TYPE_CODE, $searchCriteria)

0 commit comments

Comments
 (0)