summaryrefslogtreecommitdiff
path: root/indra/newview/llpanelprofileclassifieds.cpp
diff options
context:
space:
mode:
authorMnikolenko Productengine <mnikolenko@productengine.com>2023-12-06 14:11:33 +0200
committerMnikolenko Productengine <mnikolenko@productengine.com>2023-12-06 14:11:33 +0200
commitb2b1aeffc72fda7b2857f2dd9069d65b23bd7021 (patch)
tree0d131476898e3501d5e10e58b23f277cac9cba99 /indra/newview/llpanelprofileclassifieds.cpp
parentbf8fb4ef0d5345f65cfc2e8a750eea6a4ef3d05c (diff)
SL-20693 FIXED Classifieds publish price field misinterprets invalid values
Diffstat (limited to 'indra/newview/llpanelprofileclassifieds.cpp')
-rw-r--r--indra/newview/llpanelprofileclassifieds.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/indra/newview/llpanelprofileclassifieds.cpp b/indra/newview/llpanelprofileclassifieds.cpp
index f9529e9d23..393deb41ab 100644
--- a/indra/newview/llpanelprofileclassifieds.cpp
+++ b/indra/newview/llpanelprofileclassifieds.cpp
@@ -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();