diff options
author | Merov Linden <merov@lindenlab.com> | 2014-04-22 20:57:49 -0700 |
---|---|---|
committer | Merov Linden <merov@lindenlab.com> | 2014-04-22 20:57:49 -0700 |
commit | d22944da00a5ade5eb97aa109bac624967ead94c (patch) | |
tree | 48f2cef6f7c25b95912b5a0d4d68d74d9fac9da0 /indra/newview/llfloatermarketplacelistings.cpp | |
parent | 277539e5624f9a71186568d4a2d506033f76e312 (diff) |
DD-58 : Forced listing ID to be an integer throughout. Verify we get an integer when using the associate UI.
Diffstat (limited to 'indra/newview/llfloatermarketplacelistings.cpp')
-rwxr-xr-x | indra/newview/llfloatermarketplacelistings.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/indra/newview/llfloatermarketplacelistings.cpp b/indra/newview/llfloatermarketplacelistings.cpp index 39df5f4abe..fcf2b74dd6 100755 --- a/indra/newview/llfloatermarketplacelistings.cpp +++ b/indra/newview/llfloatermarketplacelistings.cpp @@ -563,8 +563,11 @@ void LLFloaterAssociateListing::apply() { if (mUUID.notNull()) { - const std::string& id = getChild<LLUICtrl>("listing_id")->getValue().asString(); - LLMarketplaceData::instance().associateListing(mUUID,id); + S32 id = (S32)getChild<LLUICtrl>("listing_id")->getValue().asInteger(); + if (id > 0) + { + LLMarketplaceData::instance().associateListing(mUUID,id); + } } closeFloater(); } |