Inventory refactor: fixed drag-n-drop so that a group cannot be dropped onto itself or dropped into a group where it already exists.

This commit is contained in:
chris Houseknecht
2014-01-15 14:19:46 -05:00
parent 9bf941e8d4
commit c62718493c
4 changed files with 26 additions and 10 deletions

View File

@@ -75,7 +75,7 @@ angular.module('InventoryTree', ['Utilities', 'RestServices', 'GroupsHelper', 'P
var children = [];
for (var j=0; j < sorted[i].children.length; j++) {
children.push(sorted[i].children[j]);
children.push(sorted[i].children[j].id);
}
var group = {