diff options
author | diva | 2009-06-11 20:27:13 +0000 |
---|---|---|
committer | diva | 2009-06-11 20:27:13 +0000 |
commit | 2afd733229627b9ec59eb9a41e865a8d83d5d4c3 (patch) | |
tree | 24e0a5dda83b9a71268b23419c843aed7bf93220 /OpenSim/Services | |
parent | Small improvement in the IAR tests, but these tests are still showing random ... (diff) | |
download | opensim-SC-2afd733229627b9ec59eb9a41e865a8d83d5d4c3.zip opensim-SC-2afd733229627b9ec59eb9a41e865a8d83d5d4c3.tar.gz opensim-SC-2afd733229627b9ec59eb9a41e865a8d83d5d4c3.tar.bz2 opensim-SC-2afd733229627b9ec59eb9a41e865a8d83d5d4c3.tar.xz |
Fixes mantis #3803. Thanks jhurliman.
Diffstat (limited to 'OpenSim/Services')
3 files changed, 8 insertions, 7 deletions
diff --git a/OpenSim/Services/Connectors/Inventory/QuickAndDirtyInventoryServiceConnector.cs b/OpenSim/Services/Connectors/Inventory/QuickAndDirtyInventoryServiceConnector.cs index 3264f41..fbb2707 100644 --- a/OpenSim/Services/Connectors/Inventory/QuickAndDirtyInventoryServiceConnector.cs +++ b/OpenSim/Services/Connectors/Inventory/QuickAndDirtyInventoryServiceConnector.cs | |||
@@ -106,7 +106,7 @@ namespace OpenSim.Services.Connectors | |||
106 | { | 106 | { |
107 | } | 107 | } |
108 | 108 | ||
109 | public List<InventoryItemBase> GetFolderItems(UUID folderID) | 109 | public List<InventoryItemBase> GetFolderItems(UUID userID, UUID folderID) |
110 | { | 110 | { |
111 | return null; | 111 | return null; |
112 | } | 112 | } |
diff --git a/OpenSim/Services/Interfaces/IInventoryService.cs b/OpenSim/Services/Interfaces/IInventoryService.cs index 8757744..15da3cb 100644 --- a/OpenSim/Services/Interfaces/IInventoryService.cs +++ b/OpenSim/Services/Interfaces/IInventoryService.cs | |||
@@ -72,9 +72,10 @@ namespace OpenSim.Services.Interfaces | |||
72 | /// <summary> | 72 | /// <summary> |
73 | /// Gets the items inside a folder | 73 | /// Gets the items inside a folder |
74 | /// </summary> | 74 | /// </summary> |
75 | /// <param name="userID"></param> | ||
75 | /// <param name="folderID"></param> | 76 | /// <param name="folderID"></param> |
76 | /// <returns></returns> | 77 | /// <returns></returns> |
77 | List<InventoryItemBase> GetFolderItems(UUID folderID); | 78 | List<InventoryItemBase> GetFolderItems(UUID userID, UUID folderID); |
78 | 79 | ||
79 | /// <summary> | 80 | /// <summary> |
80 | /// Add a new folder to the user's inventory | 81 | /// Add a new folder to the user's inventory |
diff --git a/OpenSim/Services/InventoryService/InventoryService.cs b/OpenSim/Services/InventoryService/InventoryService.cs index 1190b38..86a903c 100644 --- a/OpenSim/Services/InventoryService/InventoryService.cs +++ b/OpenSim/Services/InventoryService/InventoryService.cs | |||
@@ -150,7 +150,7 @@ namespace OpenSim.Services.InventoryService | |||
150 | 150 | ||
151 | foreach (InventoryFolderBase folder in allFolders) | 151 | foreach (InventoryFolderBase folder in allFolders) |
152 | { | 152 | { |
153 | List<InventoryItemBase> items = GetFolderItems(folder.ID); | 153 | List<InventoryItemBase> items = GetFolderItems(userID, folder.ID); |
154 | 154 | ||
155 | if (items != null) | 155 | if (items != null) |
156 | { | 156 | { |
@@ -205,7 +205,7 @@ namespace OpenSim.Services.InventoryService | |||
205 | { | 205 | { |
206 | rootFolder = new InventoryFolderImpl(folder); | 206 | rootFolder = new InventoryFolderImpl(folder); |
207 | folders.Add(rootFolder); | 207 | folders.Add(rootFolder); |
208 | items.AddRange(GetFolderItems(rootFolder.ID)); | 208 | items.AddRange(GetFolderItems(userID, rootFolder.ID)); |
209 | break; // Only 1 root folder per user | 209 | break; // Only 1 root folder per user |
210 | } | 210 | } |
211 | } | 211 | } |
@@ -217,7 +217,7 @@ namespace OpenSim.Services.InventoryService | |||
217 | if (folder.ID != rootFolder.ID) | 217 | if (folder.ID != rootFolder.ID) |
218 | { | 218 | { |
219 | folders.Add(new InventoryFolderImpl(folder)); | 219 | folders.Add(new InventoryFolderImpl(folder)); |
220 | items.AddRange(GetFolderItems(folder.ID)); | 220 | items.AddRange(GetFolderItems(userID, folder.ID)); |
221 | } | 221 | } |
222 | } | 222 | } |
223 | } | 223 | } |
@@ -255,7 +255,7 @@ namespace OpenSim.Services.InventoryService | |||
255 | return inventoryList; | 255 | return inventoryList; |
256 | } | 256 | } |
257 | 257 | ||
258 | public List<InventoryItemBase> GetFolderItems(UUID folderID) | 258 | public List<InventoryItemBase> GetFolderItems(UUID userID, UUID folderID) |
259 | { | 259 | { |
260 | List<InventoryItemBase> itemsList = new List<InventoryItemBase>(); | 260 | List<InventoryItemBase> itemsList = new List<InventoryItemBase>(); |
261 | 261 | ||
@@ -377,7 +377,7 @@ namespace OpenSim.Services.InventoryService | |||
377 | m_Database.deleteInventoryFolder(subFolder.ID); | 377 | m_Database.deleteInventoryFolder(subFolder.ID); |
378 | } | 378 | } |
379 | 379 | ||
380 | List<InventoryItemBase> items = GetFolderItems(folder.ID); | 380 | List<InventoryItemBase> items = GetFolderItems(folder.Owner, folder.ID); |
381 | 381 | ||
382 | foreach (InventoryItemBase item in items) | 382 | foreach (InventoryItemBase item in items) |
383 | { | 383 | { |