Skip to content

Commit e066a96

Browse files
author
lakshmana
committed
ACP2E-1703 : Category URL rewrites cannot be created for categories under level 3
- Fixed Static Test failures
1 parent 753ba93 commit e066a96

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

app/code/Magento/UrlRewrite/view/adminhtml/templates/categories.phtml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,17 @@ $root = $block->getRoot(null, 0)
1111
<legend class="admin__legend"><span><?= $block->escapeHtml(__('Select Category')) ?></span></legend>
1212
<div class="content content-category-tree">
1313
<input type="hidden" name="categories" id="product_categories" value=""/>
14-
<?php if ($root) : ?>
14+
<?php if ($root): ?>
1515
<div class="jstree-default"></div>
1616
<?php endif; ?>
1717
</div>
1818
</fieldset>
19-
<?php if ($root) : ?>
19+
<?php if ($root): ?>
2020
<script type="text/x-magento-init">
2121
{
2222
".jstree-default": {
2323
"categoryTree": {
24-
"data": <?= /* @noEscape */
25-
$this->helper(\Magento\Framework\Json\Helper\Data::class)->jsonEncode($block->getTreeArray()); ?>,
24+
"data": <?= $block->getTreeArray(null, true); ?>,
2625
"url": "<?= $block->escapeJs($block->escapeUrl($block->getLoadTreeUrl())); ?>"
2726
}
2827
}

0 commit comments

Comments
 (0)