netbox-inventory icon indicating copy to clipboard operation
netbox-inventory copied to clipboard

InventoryItemGroup tree broken after bulk edit setting parent

Open matejv opened this issue 1 year ago • 0 comments

Bulk edit more than one InventoryItemGroup and set parent. The tree is messed-up after this operation. parent attribute is set correctly, but level and possibly lft and rght are wrong.

InventoryItemGroup.objects.rebuild() fixes it.

Tying the same operation on SiteGroup for example works fine.

matejv avatar Mar 29 '23 18:03 matejv