summaryrefslogtreecommitdiff
path: root/indra/newview/llviewerinventory.cpp
diff options
context:
space:
mode:
authorMnikolenko Productengine <mnikolenko@productengine.com>2016-04-20 17:46:59 +0300
committerMnikolenko Productengine <mnikolenko@productengine.com>2016-04-20 17:46:59 +0300
commit76d1551e2ce53f8c26a8f5ced6c27c9a85e8a19f (patch)
treeef309084299b7de4c1516d8f0ca9b12469920fb1 /indra/newview/llviewerinventory.cpp
parent718b68db629c14fae6c89716ccd961a57c738bb2 (diff)
MAINT-6341 Changing properties of the object in inventory are not saved after transfer it to next owner
Diffstat (limited to 'indra/newview/llviewerinventory.cpp')
-rwxr-xr-xindra/newview/llviewerinventory.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/indra/newview/llviewerinventory.cpp b/indra/newview/llviewerinventory.cpp
index 5616c27370..d0813544f8 100755
--- a/indra/newview/llviewerinventory.cpp
+++ b/indra/newview/llviewerinventory.cpp
@@ -389,12 +389,18 @@ void LLViewerInventoryItem::updateServer(BOOL is_new) const
if (updates.has("asset_id"))
{
updates.erase("asset_id");
- updates["hash_id"] = getTransactionID();
+ if(getTransactionID().notNull())
+ {
+ updates["hash_id"] = getTransactionID();
+ }
}
if (updates.has("shadow_id"))
{
updates.erase("shadow_id");
- updates["hash_id"] = getTransactionID();
+ if(getTransactionID().notNull())
+ {
+ updates["hash_id"] = getTransactionID();
+ }
}
AISAPI::completion_t cr = boost::bind(&doInventoryCb, (LLPointer<LLInventoryCallback>)NULL, _1);
AISAPI::UpdateItem(getUUID(), updates, cr);