summaryrefslogtreecommitdiff
path: root/indra/newview/llinventoryfunctions.cpp
diff options
context:
space:
mode:
authorMerov Linden <merov@lindenlab.com>2014-11-18 14:54:36 -0800
committerMerov Linden <merov@lindenlab.com>2014-11-18 14:54:36 -0800
commit3513633d86b89127e8d19cc5906ab614bb051560 (patch)
tree6aa9b922058e349a001fffd24fa546726fe1cd47 /indra/newview/llinventoryfunctions.cpp
parent43745ce2714eca8dce95e08a89eeb3c278b0be3f (diff)
DD-264 : Do not unlist listings when version folder is emptied
Diffstat (limited to 'indra/newview/llinventoryfunctions.cpp')
-rwxr-xr-xindra/newview/llinventoryfunctions.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/indra/newview/llinventoryfunctions.cpp b/indra/newview/llinventoryfunctions.cpp
index a11339358a..d1acbee533 100755
--- a/indra/newview/llinventoryfunctions.cpp
+++ b/indra/newview/llinventoryfunctions.cpp
@@ -1555,19 +1555,18 @@ bool validate_marketplacelistings(LLInventoryCategory* cat, validation_callback_
{
if (cat_array->size() == 0)
{
- // If this is an empty version folder, raise an error
if (depth == 2)
{
- result = false;
+ // If this is an empty version folder, warn only (listing won't be delivered by AIS, but only AIS should unlist)
if (cb)
{
std::string message = indent + cat->getName() + LLTrans::getString("Marketplace Validation Error Empty Version");
- cb(message,LLError::LEVEL_ERROR);
+ cb(message,LLError::LEVEL_WARN);
}
}
else if ((folder_type == LLFolderType::FT_MARKETPLACE_STOCK) && (depth > 2))
{
- // If this is a legit but empty stock folder, warn only (listing must stay searchable when empty)
+ // If this is a legit but empty stock folder, warn only (listing must stay searchable when out of stock)
if (cb)
{
std::string message = indent + cat->getName() + LLTrans::getString("Marketplace Validation Error Empty Stock");