Skip to content
Snippets Groups Projects
Commit 0d793f4f authored by Andrey Kleshchev's avatar Andrey Kleshchev
Browse files

restored SL-14027 (merge conflict)

parent 3f319016
No related branches found
No related tags found
No related merge requests found
...@@ -262,7 +262,7 @@ void LLFloaterEditEnvironmentBase::onSaveAsCommit(const LLSD& notification, cons ...@@ -262,7 +262,7 @@ void LLFloaterEditEnvironmentBase::onSaveAsCommit(const LLSD& notification, cons
{ {
const LLUUID &marketplacelistings_id = gInventory.findCategoryUUIDForType(LLFolderType::FT_MARKETPLACE_LISTINGS, false); const LLUUID &marketplacelistings_id = gInventory.findCategoryUUIDForType(LLFolderType::FT_MARKETPLACE_LISTINGS, false);
LLUUID parent_id = mInventoryItem->getParentUUID(); LLUUID parent_id = mInventoryItem->getParentUUID();
if (marketplacelistings_id == parent_id) if (marketplacelistings_id == parent_id || gInventory.isObjectDescendentOf(mInventoryItem->getUUID(), gInventory.getLibraryRootFolderID()))
{ {
parent_id = gInventory.findCategoryUUIDForType(LLFolderType::FT_SETTINGS); parent_id = gInventory.findCategoryUUIDForType(LLFolderType::FT_SETTINGS);
} }
......
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