aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authormeta72010-08-20 11:25:31 -0700
committermeta72010-08-20 11:25:31 -0700
commitb1790ba56ec4ee61a2df6747b1fa42ae0c37da15 (patch)
treeaf3eb8fb20a583ec3cd24d8f93149c8b404be1a6
parentMerge branch 'careminster-presence-refactor' of ssh://3dhosting.de/var/git/ca... (diff)
downloadopensim-SC_OLD-b1790ba56ec4ee61a2df6747b1fa42ae0c37da15.zip
opensim-SC_OLD-b1790ba56ec4ee61a2df6747b1fa42ae0c37da15.tar.gz
opensim-SC_OLD-b1790ba56ec4ee61a2df6747b1fa42ae0c37da15.tar.bz2
opensim-SC_OLD-b1790ba56ec4ee61a2df6747b1fa42ae0c37da15.tar.xz
Delete items as well as folders in XInventoryService.PurgeFolder - this should make emptying the trash work properly.
-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 }