SL-20693 FIXED Classifieds publish price field misinterprets invalid values

meow-7.2.2
Mnikolenko Productengine 2023-12-06 14:11:33 +02:00
parent bf8fb4ef0d
commit b2b1aeffc7
2 changed files with 9 additions and 1 deletions

View File

@ -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();

View File

@ -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"