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

0.7.0.2-release
Justin Clark-Casey (justincc) 2010-08-23 23:25:36 +01:00 committed by Diva Canto
parent 7c4e0c1368
commit 4f63edaa72
1 changed files with 17 additions and 0 deletions

View File

@ -230,6 +230,23 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Inventory
if (item == null) if (item == null)
return false; 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); return m_RemoteConnector.AddItem(item);
} }