Skip to content

Commit f589e1d

Browse files
committed
ACP2E-3350: Disabled Categories are no longer have their names grayed out in the category tree
1 parent c56af50 commit f589e1d

File tree

2 files changed

+3
-1
lines changed
  • app/code/Magento/Catalog/Block/Adminhtml/Category
  • dev/tests/integration/testsuite/Magento/Catalog/Block/Adminhtml/Category

2 files changed

+3
-1
lines changed

app/code/Magento/Catalog/Block/Adminhtml/Category/Tree.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ protected function _getNodeJson($node, $level = 0)
392392
$item['id'] = $node->getId();
393393
$item['store'] = (int)$this->getStore()->getId();
394394
$item['path'] = $node->getData('path');
395-
$item['li_attr'] = ['class' => $node->getIsActive() ? 'active-category' : 'no-active-category'];
395+
$item['a_attr'] = ['class' => $node->getIsActive() ? 'active-category' : 'no-active-category'];
396396
//$item['allowDrop'] = ($level<3) ? true : false;
397397
$allowMove = $this->_isCategoryMoveable($node);
398398
$item['allowDrop'] = $allowMove;

dev/tests/integration/testsuite/Magento/Catalog/Block/Adminhtml/Category/TreeBlockTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
* Copyright 2024 Adobe
44
* All Rights Reserved.
55
*/
6+
declare(strict_types=1);
7+
68
namespace Magento\Catalog\Block\Adminhtml\Category;
79

810
use Magento\Catalog\Test\Fixture\Category as CategoryFixture;

0 commit comments

Comments
 (0)