summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorMerov Linden <merov@lindenlab.com>2014-06-09 16:23:18 -0700
committerMerov Linden <merov@lindenlab.com>2014-06-09 16:23:18 -0700
commit73055758b9a170f7f1b868caab477b3b0d1b5b18 (patch)
tree66eef33d3e758b297e88aeaaef110797acdce5a3 /indra
parent4083e972ccf238cd02d60da2af88855f25ed7b1f (diff)
DD-126 : Fixed. Check that the version folder depth is 2 when enforcing consistency rules
Diffstat (limited to 'indra')
-rwxr-xr-xindra/newview/llinventoryfunctions.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/indra/newview/llinventoryfunctions.cpp b/indra/newview/llinventoryfunctions.cpp
index 606f95560b..de1173bf2b 100755
--- a/indra/newview/llinventoryfunctions.cpp
+++ b/indra/newview/llinventoryfunctions.cpp
@@ -163,9 +163,10 @@ void update_marketplace_category(const LLUUID& cur_uuid, bool perform_consistenc
if (perform_consistency_enforcement && LLMarketplaceData::instance().isListed(listing_uuid))
{
LLUUID version_folder_uuid = LLMarketplaceData::instance().getVersionFolder(listing_uuid);
- if (version_folder_uuid.notNull() && !gInventory.isObjectDescendentOf(version_folder_uuid, listing_uuid))
+ S32 version_depth = depth_nesting_in_marketplace(version_folder_uuid);
+ if (version_folder_uuid.notNull() && (!gInventory.isObjectDescendentOf(version_folder_uuid, listing_uuid) || (version_depth != 2)))
{
- LL_INFOS("SLM") << "Unlist as the version folder is not under the listing folder anymore!!" << LL_ENDL;
+ LL_INFOS("SLM") << "Unlist and clear version folder as the version folder is not at the right place anymore!!" << LL_ENDL;
LLMarketplaceData::instance().setVersionFolder(listing_uuid, LLUUID::null);
}
}