diff options
| author | andreykproductengine <akleshchev@productengine.com> | 2016-11-04 15:20:01 +0200 | 
|---|---|---|
| committer | andreykproductengine <akleshchev@productengine.com> | 2016-11-04 15:20:01 +0200 | 
| commit | 28c9002e980cf2ac6a7b7c79f8e16a64994c21c4 (patch) | |
| tree | fac0ec55e26b56942f6e172982fdd393a4a9ab84 /indra | |
| parent | 3c9181867f151d8bc076b10160348bcde7d8d184 (diff) | |
MAINT-6906 Editing landmark name removes the land mark coordinates
Diffstat (limited to 'indra')
| -rw-r--r-- | 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 0bbe9fa2c2..434641aa25 100644 --- a/indra/newview/llviewerinventory.cpp +++ b/indra/newview/llviewerinventory.cpp @@ -1303,12 +1303,18 @@ void update_inventory_item(      if (updates.has("asset_id"))      {          updates.erase("asset_id"); -        updates["hash_id"] = update_item->getTransactionID(); +        if (update_item->getTransactionID().notNull()) +        { +            updates["hash_id"] = update_item->getTransactionID(); +        }      }      if (updates.has("shadow_id"))      {          updates.erase("shadow_id"); -        updates["hash_id"] = update_item->getTransactionID(); +        if (update_item->getTransactionID().notNull()) +        { +            updates["hash_id"] = update_item->getTransactionID(); +        }      }      AISAPI::completion_t cr = boost::bind(&doInventoryCb, cb, _1);      AISAPI::UpdateItem(item_id, updates, cr); | 
