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-enginemeow-7.2.2
parent
ecc02f3420
commit
61e6c888f0
|
|
@ -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"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue