DD-337 : Validate the version folder before setting it and show error dialog if error
parent
1dd5c338d2
commit
b4d22741a6
|
|
@ -3113,7 +3113,17 @@ void LLFolderBridge::performAction(LLInventoryModel* model, std::string action)
|
|||
if (depth_nesting_in_marketplace(mUUID) == 2)
|
||||
{
|
||||
LLInventoryCategory* category = gInventory.getCategory(mUUID);
|
||||
LLMarketplaceData::instance().setVersionFolder(category->getParentUUID(), mUUID);
|
||||
mMessage = "";
|
||||
if (!validate_marketplacelistings(category,boost::bind(&LLFolderBridge::gatherMessage, this, _1, _2, _3),false,2))
|
||||
{
|
||||
LLSD subs;
|
||||
subs["[ERROR_CODE]"] = mMessage;
|
||||
LLNotificationsUtil::add("MerchantFolderActivationFailed", subs);
|
||||
}
|
||||
else
|
||||
{
|
||||
LLMarketplaceData::instance().setVersionFolder(category->getParentUUID(), mUUID);
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -373,6 +373,19 @@ Initialization with the Marketplace failed because of a system or network error.
|
|||
yestext="OK"/>
|
||||
</notification>
|
||||
|
||||
<notification
|
||||
icon="OutboxStatus_Error"
|
||||
name="MerchantFolderActivationFailed"
|
||||
type="outbox">
|
||||
Activating this version folder failed with error :
|
||||
|
||||
'[ERROR_CODE]'
|
||||
|
||||
<usetemplate
|
||||
name="okbutton"
|
||||
yestext="OK"/>
|
||||
</notification>
|
||||
|
||||
<notification
|
||||
icon="alertmodal.tga"
|
||||
name="ConfirmMerchantActiveChange"
|
||||
|
|
|
|||
Loading…
Reference in New Issue