mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
Delete items as well as folders in XInventoryService.PurgeFolder - this should make emptying the trash work properly.
This commit is contained in:
@@ -342,6 +342,17 @@ namespace OpenSim.Services.InventoryService
|
||||
m_Database.DeleteFolders("folderID", x.folderID.ToString());
|
||||
}
|
||||
|
||||
XInventoryItem[] items = m_Database.GetItems(
|
||||
new string[] { "parentFolderID" },
|
||||
new string[] { folder.ID.ToString() });
|
||||
|
||||
List<UUID> itemlist = new List<UUID>();
|
||||
foreach (XInventoryItem i in items)
|
||||
{
|
||||
itemlist.Add(i.inventoryID);
|
||||
}
|
||||
|
||||
DeleteItems(folder.Owner, itemlist);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user