Skip to content

Commit 0a8c5ae

Browse files
MAGETWO-96444: Impossible to sort Root Categories via drag'n'drop
1 parent f7a2237 commit 0a8c5ae

File tree

1 file changed

+2
-2
lines changed
  • app/code/Magento/Catalog/view/adminhtml/templates/catalog/category/checkboxes

1 file changed

+2
-2
lines changed

app/code/Magento/Catalog/view/adminhtml/templates/catalog/category/checkboxes/tree.phtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@
2020
"categoryCheckboxTree": {
2121
"dataUrl": "<?= $block->escapeUrl($block->getLoadTreeUrl()) ?>",
2222
"divId": "<?= /* @noEscape */ $divId ?>",
23-
"rootVisible": <?= /* @noEscape */ $block->getRoot()->getIsVisible() ? 'true' : 'false' ?>,
23+
"rootVisible": false,
2424
"useAjax": <?= $block->escapeHtml($block->getUseAjax()) ?>,
2525
"currentNodeId": <?= (int)$block->getCategoryId() ?>,
2626
"jsFormObject": "<?= /* @noEscape */ $block->getJsFormObject() ?>",
2727
"name": "<?= $block->escapeHtml($block->getRoot()->getName()) ?>",
2828
"checked": "<?= $block->escapeHtml($block->getRoot()->getChecked()) ?>",
2929
"allowdDrop": <?= /* @noEscape */ $block->getRoot()->getIsVisible() ? 'true' : 'false' ?>,
3030
"rootId": <?= (int)$block->getRoot()->getId() ?>,
31-
"expanded": <?= (int)$block->getIsWasExpanded() ?>,
31+
"expanded": true,
3232
"categoryId": <?= (int)$block->getCategoryId() ?>,
3333
"treeJson": <?= /* @noEscape */ $block->getTreeJson() ?>
3434
}

0 commit comments

Comments
 (0)