Skip to content

Commit 753ba93

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

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,18 @@
55
*/
66

77
/** @var \Magento\UrlRewrite\Block\Catalog\Category\Tree $block */
8+
$root = $block->getRoot(null, 0)
89
?>
910
<fieldset class="admin__fieldset" data-ui-id="category-selector">
1011
<legend class="admin__legend"><span><?= $block->escapeHtml(__('Select Category')) ?></span></legend>
1112
<div class="content content-category-tree">
1213
<input type="hidden" name="categories" id="product_categories" value=""/>
13-
<?php if ($block->getRoot()) : ?>
14+
<?php if ($root) : ?>
1415
<div class="jstree-default"></div>
1516
<?php endif; ?>
1617
</div>
1718
</fieldset>
18-
<?php if ($block->getRoot()) : ?>
19+
<?php if ($root) : ?>
1920
<script type="text/x-magento-init">
2021
{
2122
".jstree-default": {

0 commit comments

Comments
 (0)