Skip to content

Commit e6f3e6c

Browse files
committed
MAGETWO-87986: Media Folder Structure for CMS Images
1 parent 113027d commit e6f3e6c

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

app/code/Magento/Cms/view/adminhtml/web/js/folder-tree.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ define([
8484
recursiveOpen = function () {
8585
var el = $('[data-id="' + path.pop() + '"]');
8686

87-
if (path.length) {
87+
if (path.length > 1) {
8888
tree.jstree('open_node', el, recursiveOpen);
8989
} else {
9090
tree.jstree('open_node', el, function () {

dev/tests/acceptance/tests/functional/Magento/FunctionalTest/Catalog/Section/AdminCategoryBasicFieldSection.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,4 @@
5656
<element name="checkIfArrowExpand" type="button" selector="//li[@id='root' and contains(@class,'jstree-closed')]" />
5757
<element name="confirmDelete" type="button" selector=".action-primary.action-accept" />
5858
</section>
59-
<section name="MediaGallerySection">
60-
<element name="CategoryFolderOpen" type="button" selector="//li[@id='Y2F0YWxvZy9jYXRlZ29yeQ--' and contains(@class, 'jstree-open')]" />
61-
</section>
6259
</sections>

0 commit comments

Comments
 (0)