Merge branch 'master' of /var/git/opensim/
commit
cb2b1257e9
|
@ -967,6 +967,7 @@ namespace OpenSim.Framework.Capabilities
|
|||
InventoryItemBase item = new InventoryItemBase();
|
||||
item.Owner = m_agentID;
|
||||
item.CreatorId = m_agentID.ToString();
|
||||
item.CreatorData = String.Empty;
|
||||
item.ID = inventoryItem;
|
||||
item.AssetID = asset.FullID;
|
||||
item.Description = assetDescription;
|
||||
|
|
|
@ -600,8 +600,10 @@ namespace OpenSim.Server.Handlers.Asset
|
|||
ret["AssetType"] = item.AssetType.ToString();
|
||||
ret["BasePermissions"] = item.BasePermissions.ToString();
|
||||
ret["CreationDate"] = item.CreationDate.ToString();
|
||||
if (item.CreatorId != null)
|
||||
ret["CreatorId"] = item.CreatorId.ToString();
|
||||
ret["CreatorData"] = item.CreatorData.ToString();
|
||||
else
|
||||
ret["CreatorId"] = String.Empty;
|
||||
ret["CurrentPermissions"] = item.CurrentPermissions.ToString();
|
||||
ret["Description"] = item.Description.ToString();
|
||||
ret["EveryOnePermissions"] = item.EveryOnePermissions.ToString();
|
||||
|
|
|
@ -302,6 +302,8 @@ namespace OpenSim.Services.Connectors
|
|||
|
||||
public bool AddItem(InventoryItemBase item)
|
||||
{
|
||||
if (item.CreatorData == null)
|
||||
item.CreatorData = String.Empty;
|
||||
Dictionary<string,object> ret = MakeRequest("ADDITEM",
|
||||
new Dictionary<string,object> {
|
||||
{ "AssetID", item.AssetID.ToString() },
|
||||
|
@ -335,6 +337,8 @@ namespace OpenSim.Services.Connectors
|
|||
|
||||
public bool UpdateItem(InventoryItemBase item)
|
||||
{
|
||||
if (item.CreatorData == null)
|
||||
item.CreatorData = String.Empty;
|
||||
Dictionary<string,object> ret = MakeRequest("UPDATEITEM",
|
||||
new Dictionary<string,object> {
|
||||
{ "AssetID", item.AssetID.ToString() },
|
||||
|
@ -558,7 +562,10 @@ namespace OpenSim.Services.Connectors
|
|||
item.InvType = int.Parse(data["InvType"].ToString());
|
||||
item.Folder = new UUID(data["Folder"].ToString());
|
||||
item.CreatorId = data["CreatorId"].ToString();
|
||||
if (data.ContainsKey("CreatorData"))
|
||||
item.CreatorData = data["CreatorData"].ToString();
|
||||
else
|
||||
item.CreatorData = String.Empty;
|
||||
item.Description = data["Description"].ToString();
|
||||
item.NextPermissions = uint.Parse(data["NextPermissions"].ToString());
|
||||
item.CurrentPermissions = uint.Parse(data["CurrentPermissions"].ToString());
|
||||
|
|
Loading…
Reference in New Issue