File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
app/code/Magento/UrlRewrite/view/adminhtml/templates Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -11,18 +11,17 @@ $root = $block->getRoot(null, 0)
11
11
<legend class="admin__legend"><span><?= $ block ->escapeHtml (__ ('Select Category ' )) ?> </span></legend>
12
12
<div class="content content-category-tree">
13
13
<input type="hidden" name="categories" id="product_categories" value=""/>
14
- <?php if ($ root ) : ?>
14
+ <?php if ($ root ): ?>
15
15
<div class="jstree-default"></div>
16
16
<?php endif ; ?>
17
17
</div>
18
18
</fieldset>
19
- <?php if ($ root ) : ?>
19
+ <?php if ($ root ): ?>
20
20
<script type="text/x-magento-init">
21
21
{
22
22
".jstree-default": {
23
23
"categoryTree": {
24
- "data": <?= /* @noEscape */
25
- $ this ->helper (\Magento \Framework \Json \Helper \Data::class)->jsonEncode ($ block ->getTreeArray ()); ?> ,
24
+ "data": <?= $ block ->getTreeArray (null , true ); ?> ,
26
25
"url": "<?= $ block ->escapeJs ($ block ->escapeUrl ($ block ->getLoadTreeUrl ())); ?> "
27
26
}
28
27
}
You can’t perform that action at this time.
0 commit comments