diff options
author | Merov Linden <merov@lindenlab.com> | 2014-09-03 22:06:04 -0700 |
---|---|---|
committer | Merov Linden <merov@lindenlab.com> | 2014-09-03 22:06:04 -0700 |
commit | 8f119c04d484546d73fa906e8f6bd4018e2e6162 (patch) | |
tree | 6ce11490debae426fe5d1f625b07381adbb87174 /indra/newview | |
parent | 997bd029759afddb5f75c9ec5ccde212f82c387a (diff) |
DD-179 : Avoid creating folders named Marketplace Listings when doing audit
Diffstat (limited to 'indra/newview')
-rwxr-xr-x | indra/newview/llinventoryfunctions.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/indra/newview/llinventoryfunctions.cpp b/indra/newview/llinventoryfunctions.cpp index 3925bcda02..ab370d6a63 100755 --- a/indra/newview/llinventoryfunctions.cpp +++ b/indra/newview/llinventoryfunctions.cpp @@ -1537,21 +1537,23 @@ bool validate_marketplacelistings(LLInventoryCategory* cat, validation_callback_ { // Create a new folder LLUUID parent_uuid = (depth > 2 ? viewer_cat->getParentUUID() : viewer_cat->getUUID()); + LLViewerInventoryItem* viewer_inv_item = items_vector[i].back(); + std::string folder_name = (depth > 1 ? viewer_cat->getName() : viewer_inv_item->getName()); LLFolderType::EType new_folder_type = (i == LLInventoryType::IT_COUNT ? LLFolderType::FT_NONE : LLFolderType::FT_MARKETPLACE_STOCK); if (cb) { std::string message = ""; if (new_folder_type == LLFolderType::FT_MARKETPLACE_STOCK) { - message = indent + viewer_cat->getName() + LLTrans::getString("Marketplace Validation Warning Create Stock"); + message = indent + folder_name + LLTrans::getString("Marketplace Validation Warning Create Stock"); } else { - message = indent + viewer_cat->getName() + LLTrans::getString("Marketplace Validation Warning Create Version"); + message = indent + folder_name + LLTrans::getString("Marketplace Validation Warning Create Version"); } cb(message,LLError::LEVEL_WARN); } - LLUUID folder_uuid = gInventory.createNewCategory(parent_uuid, new_folder_type, viewer_cat->getName()); + LLUUID folder_uuid = gInventory.createNewCategory(parent_uuid, new_folder_type, folder_name); // Move each item to the new folder while (!items_vector[i].empty()) { |