aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--OpenSim/Services/InventoryService/XInventoryService.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/OpenSim/Services/InventoryService/XInventoryService.cs b/OpenSim/Services/InventoryService/XInventoryService.cs
index 26c5b33..e3f0a19 100644
--- a/OpenSim/Services/InventoryService/XInventoryService.cs
+++ b/OpenSim/Services/InventoryService/XInventoryService.cs
@@ -342,6 +342,17 @@ namespace OpenSim.Services.InventoryService
342 m_Database.DeleteFolders("folderID", x.folderID.ToString()); 342 m_Database.DeleteFolders("folderID", x.folderID.ToString());
343 } 343 }
344 344
345 XInventoryItem[] items = m_Database.GetItems(
346 new string[] { "parentFolderID" },
347 new string[] { folder.ID.ToString() });
348
349 List<UUID> itemlist = new List<UUID>();
350 foreach (XInventoryItem i in items)
351 {
352 itemlist.Add(i.inventoryID);
353 }
354
355 DeleteItems(folder.Owner, itemlist);
345 356
346 return true; 357 return true;
347 } 358 }