Skip to content

Commit ca5e527

Browse files
committed
MAGETWO-99361: Missing categories in URL rewrites category tree
1 parent dffe94d commit ca5e527

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

app/code/Magento/Catalog/view/adminhtml/web/js/category-tree.js

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ define([
3737
ajax: {
3838
url: options.url,
3939
type: 'POST',
40-
success: $.proxy(function (node) {
41-
return this._convertData(node[0]);
40+
success: $.proxy(function (nodes) {
41+
return this._convertDataNodes(nodes);
4242
}, this),
4343

4444
/**
@@ -77,6 +77,22 @@ define([
7777
}
7878
},
7979

80+
/**
81+
* @param nodes {Array}
82+
* @returns {Array}
83+
* @private
84+
*/
85+
_convertDataNodes(nodes)
86+
{
87+
var nodesData = [];
88+
89+
nodes.forEach(function(node) {
90+
nodesData.push(this._convertData(node));
91+
}, this);
92+
93+
return nodesData;
94+
},
95+
8096
/**
8197
* @param {Object} node
8298
* @return {*}

0 commit comments

Comments
 (0)