From 71433075a9db2dde76c0390299037aab3b8b8787 Mon Sep 17 00:00:00 2001 From: Justin Clark-Casey (justincc) Date: Wed, 14 Jul 2010 17:12:12 +0100 Subject: Fix obvious bug in XInventoryService.GetFolderItems() which was preventing the iar module from being able to save single item iars --- OpenSim/Services/InventoryService/XInventoryService.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'OpenSim/Services') diff --git a/OpenSim/Services/InventoryService/XInventoryService.cs b/OpenSim/Services/InventoryService/XInventoryService.cs index f48bf60..bb24292 100644 --- a/OpenSim/Services/InventoryService/XInventoryService.cs +++ b/OpenSim/Services/InventoryService/XInventoryService.cs @@ -259,13 +259,15 @@ namespace OpenSim.Services.InventoryService public virtual List GetFolderItems(UUID principalID, UUID folderID) { +// m_log.DebugFormat("[XINVENTORY]: Fetch items for folder {0}", folderID); + // Since we probably don't get a valid principal here, either ... // List invItems = new List(); XInventoryItem[] items = m_Database.GetItems( - new string[] { "parentFolderID"}, - new string[] { UUID.Zero.ToString() }); + new string[] { "parentFolderID" }, + new string[] { folderID.ToString() }); foreach (XInventoryItem i in items) invItems.Add(ConvertToOpenSim(i)); -- cgit v1.1