diff options
Diffstat (limited to 'indra/newview')
-rwxr-xr-x | indra/newview/llviewerinventory.cpp | 10 |
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); |