summaryrefslogtreecommitdiff
path: root/indra/newview/llinventoryfunctions.cpp
diff options
context:
space:
mode:
authorMerov Linden <merov@lindenlab.com>2015-06-10 14:53:12 -0700
committerMerov Linden <merov@lindenlab.com>2015-06-10 14:53:12 -0700
commitab73b1af8fad5f012f782632a08740b4a0a1c8fa (patch)
treeec53e2587cd5063e11dbedd10dd8286bcf126249 /indra/newview/llinventoryfunctions.cpp
parent97fc50e1618b5441d6c7f305506801b85b4caacd (diff)
DD-416 : Added DAMA when version folder is empty and unlisted, accelerated some functions avoiding depth computation when we could, fixed cut case
Diffstat (limited to 'indra/newview/llinventoryfunctions.cpp')
-rwxr-xr-xindra/newview/llinventoryfunctions.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/indra/newview/llinventoryfunctions.cpp b/indra/newview/llinventoryfunctions.cpp
index d9002a631d..b241bfa466 100755
--- a/indra/newview/llinventoryfunctions.cpp
+++ b/indra/newview/llinventoryfunctions.cpp
@@ -285,19 +285,20 @@ void update_marketplace_category(const LLUUID& cur_uuid, bool perform_consistenc
if (version_folder_uuid.notNull() && (!gInventory.isObjectDescendentOf(version_folder_uuid, listing_uuid) || (version_depth != 2)))
{
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);
+ LLMarketplaceData::instance().setVersionFolder(listing_uuid, LLUUID::null,1);
}
- else if (version_folder_uuid.notNull() && (count_descendants_items(version_folder_uuid) == 0))
+ else if (version_folder_uuid.notNull() && LLMarketplaceData::instance().getActivationState(version_folder_uuid) && (count_descendants_items(version_folder_uuid) == 0) && !LLMarketplaceData::instance().isUpdating(version_folder_uuid,version_depth))
{
LL_INFOS("SLM") << "Unlist as the version folder is empty of any item!!" << LL_ENDL;
- LLMarketplaceData::instance().activateListing(listing_uuid, false);
+ LLNotificationsUtil::add("AlertMerchantVersionFolderEmpty");
+ LLMarketplaceData::instance().activateListing(listing_uuid, false,1);
}
}
// Check if the count on hand needs to be updated on SLM
if (perform_consistency_enforcement && (compute_stock_count(listing_uuid) != LLMarketplaceData::instance().getCountOnHand(listing_uuid)))
{
- LLMarketplaceData::instance().updateCountOnHand(listing_uuid);
+ LLMarketplaceData::instance().updateCountOnHand(listing_uuid,1);
}
// Update all descendents starting from the listing root
update_marketplace_folder_hierarchy(listing_uuid);