Add system lookup folder fix to the RemoveXInventoryServiceConnector as well since this presumably suffers from the same problem.

prebuild-update
Justin Clark-Casey (justincc) 2010-08-23 23:25:36 +01:00
parent 1d01c91095
commit c72d298202
1 changed files with 17 additions and 0 deletions

View File

@ -228,6 +228,23 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Inventory
{
if (item == null)
return false;
if (UUID.Zero == item.Folder)
{
InventoryFolderBase f = m_RemoteConnector.GetFolderForType(item.Owner, (AssetType)item.AssetType);
if (f != null)
{
item.Folder = f.ID;
}
else
{
f = m_RemoteConnector.GetRootFolder(item.Owner);
if (f != null)
item.Folder = f.ID;
else
return false;
}
}
return m_RemoteConnector.AddItem(item);
}