From 76d1551e2ce53f8c26a8f5ced6c27c9a85e8a19f Mon Sep 17 00:00:00 2001 From: Mnikolenko Productengine Date: Wed, 20 Apr 2016 17:46:59 +0300 Subject: MAINT-6341 Changing properties of the object in inventory are not saved after transfer it to next owner --- indra/newview/llviewerinventory.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'indra/newview/llviewerinventory.cpp') 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)NULL, _1); AISAPI::UpdateItem(getUUID(), updates, cr); -- cgit v1.2.3