From 007a058c5fee29b70bc4ac1a4b9ff40deabdbd82 Mon Sep 17 00:00:00 2001
From: Merov Linden <merov@lindenlab.com>
Date: Fri, 18 Apr 2014 15:47:59 -0700
Subject: [PATCH] DD-68 : Simply unlist if active version folder moved out of
 listing

---
 indra/newview/llinventoryfunctions.cpp | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/indra/newview/llinventoryfunctions.cpp b/indra/newview/llinventoryfunctions.cpp
index f4b66d82a4a..c9d9781848e 100755
--- a/indra/newview/llinventoryfunctions.cpp
+++ b/indra/newview/llinventoryfunctions.cpp
@@ -176,13 +176,14 @@ void update_marketplace_category(const LLUUID& cat_id)
         if (version_folder_uuid.notNull() && !gInventory.isObjectDescendentOf(version_folder_uuid, listing_uuid))
         {
             // *TODO : Confirm with Producer that this is what we want to happen in that case!
-            llinfos << "Merov : Delisting as the version folder is not under the listing folder anymore!!" << llendl;
-            LLMarketplaceData::instance().deleteListing(listing_uuid);
+            llinfos << "Merov : Unlist as the version folder is not under the listing folder anymore!!" << llendl;
+            LLMarketplaceData::instance().setVersionFolderID(listing_uuid, LLUUID::null);
+            LLMarketplaceData::instance().setActivation(listing_uuid, false);
         }
         if (!gInventory.isObjectDescendentOf(listing_uuid, marketplace_listings_uuid))
         {
             // *TODO : Confirm with Producer that this is what we want to happen in that case!
-            llinfos << "Merov : Delisting as the listing folder is not under the marketplace folder anymore!!" << llendl;
+            llinfos << "Merov : Disassociate as the listing folder is not under the marketplace folder anymore!!" << llendl;
             LLMarketplaceData::instance().deleteListing(listing_uuid);
         }
     }
-- 
GitLab