SL-20693 FIXED Classifieds publish price field misinterprets invalid values
parent
bf8fb4ef0d
commit
b2b1aeffc7
|
|
@ -1427,6 +1427,14 @@ void LLPanelProfileClassified::doSave()
|
|||
|
||||
void LLPanelProfileClassified::onPublishFloaterPublishClicked()
|
||||
{
|
||||
if (mPublishFloater->getPrice() < MINIMUM_PRICE_FOR_LISTING)
|
||||
{
|
||||
LLSD args;
|
||||
args["MIN_PRICE"] = MINIMUM_PRICE_FOR_LISTING;
|
||||
LLNotificationsUtil::add("MinClassifiedPrice", args);
|
||||
return;
|
||||
}
|
||||
|
||||
setPriceForListing(mPublishFloater->getPrice());
|
||||
|
||||
doSave();
|
||||
|
|
|
|||
|
|
@ -25,6 +25,7 @@ Remember, Classified fees are non-refundable.
|
|||
</text>
|
||||
<spinner
|
||||
decimal_digits="0"
|
||||
allow_digits_only="true"
|
||||
follows="left|top"
|
||||
font="SansSerif"
|
||||
halign="left"
|
||||
|
|
@ -36,7 +37,6 @@ Remember, Classified fees are non-refundable.
|
|||
layout="topleft"
|
||||
left="15"
|
||||
value="50"
|
||||
min_val="50"
|
||||
max_val="999999"
|
||||
name="price_for_listing"
|
||||
top_pad="10"
|
||||
|
|
|
|||
Loading…
Reference in New Issue