diff options
author | Merov Linden <merov@lindenlab.com> | 2014-11-08 13:42:07 -0800 |
---|---|---|
committer | Merov Linden <merov@lindenlab.com> | 2014-11-08 13:42:07 -0800 |
commit | 48fd1e2ec0a53fb9c572e4542a0f0c7b25bc3c2c (patch) | |
tree | 650a93c8d4fab8448e1048e55b1d269522e1bee1 /indra/newview | |
parent | b5e557b1370202a0ffe7f0345ea114181540f96c (diff) |
DD-265, DD-266 : Validate the listing id when associating, show alert if value out of positive integer limit
Diffstat (limited to 'indra/newview')
-rwxr-xr-x | indra/newview/llfloatermarketplacelistings.cpp | 5 | ||||
-rwxr-xr-x | indra/newview/skins/default/xui/en/notifications.xml | 8 |
2 files changed, 13 insertions, 0 deletions
diff --git a/indra/newview/llfloatermarketplacelistings.cpp b/indra/newview/llfloatermarketplacelistings.cpp index c732c8b2ce..942279b0f1 100755 --- a/indra/newview/llfloatermarketplacelistings.cpp +++ b/indra/newview/llfloatermarketplacelistings.cpp @@ -569,6 +569,7 @@ BOOL LLFloaterAssociateListing::postBuild() { getChild<LLButton>("OK")->setCommitCallback(boost::bind(&LLFloaterAssociateListing::apply, this, TRUE)); getChild<LLButton>("Cancel")->setCommitCallback(boost::bind(&LLFloaterAssociateListing::cancel, this)); + getChild<LLLineEditor>("listing_id")->setPrevalidate(&LLTextValidate::validatePositiveS32); center(); return LLFloater::postBuild(); @@ -632,6 +633,10 @@ void LLFloaterAssociateListing::apply(BOOL user_confirm) update_marketplace_category(listing_uuid); update_marketplace_category(mUUID); } + else + { + LLNotificationsUtil::add("AlertMerchantListingInvalidID"); + } } closeFloater(); } diff --git a/indra/newview/skins/default/xui/en/notifications.xml b/indra/newview/skins/default/xui/en/notifications.xml index 70f3f86102..06aafe45e4 100755 --- a/indra/newview/skins/default/xui/en/notifications.xml +++ b/indra/newview/skins/default/xui/en/notifications.xml @@ -414,6 +414,14 @@ This listing could not be updated. </notification> <notification + icon="alertmodal.tga" + name="AlertMerchantListingInvalidID" + type="alertmodal"> + Invalid listing ID. + <tag>fail</tag> + </notification> + + <notification icon="alertmodal.tga" name="CompileQueueSaveText" type="alertmodal"> |