Skip to content

Commit

Permalink
Hide attributes from group
Browse files Browse the repository at this point in the history
  • Loading branch information
justinbeaty committed Oct 16, 2024
1 parent e055f5f commit f084d1e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/code/core/Mage/Eav/Block/Adminhtml/Attribute/Set/Main.php
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,12 @@ public function getGroupTreeJson()
$item['allowDrop'] = true;
$item['allowDrag'] = true;

$hiddenAttributes = Mage::helper('eav')->getHiddenAttributes($entity_type->getEntityTypeCode());

/** @var Mage_Eav_Model_Entity_Attribute $nodeChildren */
$nodeChildren = Mage::getResourceModel($entity_type->getEntityAttributeCollection());
$nodeChildren->setEntityTypeFilter($entity_type->getEntityTypeId())
->setNotCodeFilter($hiddenAttributes)
->setAttributeGroupFilter($node->getId())
->load();

Expand Down

0 comments on commit f084d1e

Please sign in to comment.