Fixes mantis #4020 (http://opensimulator.org/mantis/view.php?id=4020)
parent
cd3b7bcb03
commit
d95d3b949b
|
@ -517,23 +517,21 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
// m_log.DebugFormat(
|
// m_log.DebugFormat(
|
||||||
// "[AGENT INVENTORY]: Updating inventory folder {0} {1} for {2} {3}", folderID, name, remoteClient.Name, remoteClient.AgentId);
|
// "[AGENT INVENTORY]: Updating inventory folder {0} {1} for {2} {3}", folderID, name, remoteClient.Name, remoteClient.AgentId);
|
||||||
|
|
||||||
CachedUserInfo userProfile = CommsManager.UserProfileCacheService.GetUserDetails(remoteClient.AgentId);
|
InventoryFolderBase folder = new InventoryFolderBase(folderID);
|
||||||
|
folder = InventoryService.GetFolder(folder);
|
||||||
if (null == userProfile)
|
if (folder != null)
|
||||||
{
|
{
|
||||||
m_log.ErrorFormat(
|
folder.Name = name;
|
||||||
"[AGENT INVENTORY]: Could not find user profile for {0} {1}",
|
folder.Type = (short)type;
|
||||||
remoteClient.Name, remoteClient.AgentId);
|
folder.ParentID = parentID;
|
||||||
return;
|
if (!InventoryService.UpdateFolder(folder))
|
||||||
}
|
|
||||||
|
|
||||||
if (!userProfile.UpdateFolder(name, folderID, type, parentID))
|
|
||||||
{
|
{
|
||||||
m_log.ErrorFormat(
|
m_log.ErrorFormat(
|
||||||
"[AGENT INVENTORY]: Failed to update folder for user {0} {1}",
|
"[AGENT INVENTORY]: Failed to update folder for user {0} {1}",
|
||||||
remoteClient.Name, remoteClient.AgentId);
|
remoteClient.Name, remoteClient.AgentId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public void HandleMoveInventoryFolder(IClientAPI remoteClient, UUID folderID, UUID parentID)
|
public void HandleMoveInventoryFolder(IClientAPI remoteClient, UUID folderID, UUID parentID)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue