Skip to content
Snippets Groups Projects
Commit 007a058c authored by Merov Linden's avatar Merov Linden
Browse files

DD-68 : Simply unlist if active version folder moved out of listing

parent a99e2475
No related branches found
No related tags found
No related merge requests found
...@@ -176,13 +176,14 @@ void update_marketplace_category(const LLUUID& cat_id) ...@@ -176,13 +176,14 @@ void update_marketplace_category(const LLUUID& cat_id)
if (version_folder_uuid.notNull() && !gInventory.isObjectDescendentOf(version_folder_uuid, listing_uuid)) 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! // *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; llinfos << "Merov : Unlist as the version folder is not under the listing folder anymore!!" << llendl;
LLMarketplaceData::instance().deleteListing(listing_uuid); LLMarketplaceData::instance().setVersionFolderID(listing_uuid, LLUUID::null);
LLMarketplaceData::instance().setActivation(listing_uuid, false);
} }
if (!gInventory.isObjectDescendentOf(listing_uuid, marketplace_listings_uuid)) if (!gInventory.isObjectDescendentOf(listing_uuid, marketplace_listings_uuid))
{ {
// *TODO : Confirm with Producer that this is what we want to happen in that case! // *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); LLMarketplaceData::instance().deleteListing(listing_uuid);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment