fixed EXT-3607 (Cancelling a Land Sale to Specific Person Allows Land to be Set For Sale to Anyone Briefly)

added additional check so that "for sale to anyone" text is shown only when a parcel is on sale

reviewed by Richard at https://codereview.productengine.com/secondlife/r/4/

--HG--
branch : product-engine
meow-7.2.2
Igor Borovkov 2010-03-12 12:09:22 +02:00
parent ecc02f3420
commit 61e6c888f0
1 changed files with 12 additions and 9 deletions

View File

@ -820,16 +820,19 @@ void LLPanelLandGeneral::refreshNames()
}
mTextGroup->setText(group);
const LLUUID& auth_buyer_id = parcel->getAuthorizedBuyerID();
if(auth_buyer_id.notNull())
if (parcel->getForSale())
{
std::string name;
name = LLSLURL::buildCommand("agent", auth_buyer_id, "inspect");
mSaleInfoForSale2->setTextArg("[BUYER]", name);
}
else
{
mSaleInfoForSale2->setTextArg("[BUYER]", getString("anyone"));
const LLUUID& auth_buyer_id = parcel->getAuthorizedBuyerID();
if(auth_buyer_id.notNull())
{
std::string name;
name = LLSLURL::buildCommand("agent", auth_buyer_id, "inspect");
mSaleInfoForSale2->setTextArg("[BUYER]", name);
}
else
{
mSaleInfoForSale2->setTextArg("[BUYER]", getString("anyone"));
}
}
}