We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3349a47 commit 015fcabCopy full SHA for 015fcab
app/code/Magento/Catalog/Block/Adminhtml/Category/Widget/Chooser.php
@@ -152,7 +152,7 @@ protected function _getNodeJson($node, $level = 0)
152
if (in_array($node->getId(), $this->getSelectedCategories())) {
153
$item['checked'] = true;
154
}
155
- $item['is_anchor'] = (int)$node->getIsAnchor();
+ $item['is_anchor'] = $node->getIsAnchor() !== null ? (int) $node->getIsAnchor() : 1;
156
$item['url_key'] = $node->getData('url_key');
157
return $item;
158
0 commit comments