diff options
author | Cho <cho@lindenlab.com> | 2014-08-20 01:11:27 +0100 |
---|---|---|
committer | Cho <cho@lindenlab.com> | 2014-08-20 01:11:27 +0100 |
commit | 89eac2548a9b66d8bab27a7e8d7d1ed2159e9515 (patch) | |
tree | 3a0c3d830d233331fab1edce5ab72fc9ca0e0a92 /indra/llui/llurlentry.cpp | |
parent | 55ed31173798a7d5a3b7cb42c6d6d552820c5e14 (diff) |
Made it possible to search for experiences with an empty search string, and show experiences with blank names as (untitled experience) for ACME-1585
Diffstat (limited to 'indra/llui/llurlentry.cpp')
-rwxr-xr-x | indra/llui/llurlentry.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/llui/llurlentry.cpp b/indra/llui/llurlentry.cpp index 67da98b95a..be08d92c78 100755 --- a/indra/llui/llurlentry.cpp +++ b/indra/llui/llurlentry.cpp @@ -1235,7 +1235,8 @@ std::string LLUrlEntryExperienceProfile::getLabel( const std::string &url, const const LLSD& experience_details = LLExperienceCache::get(experience_id); if(!experience_details.isUndefined()) { - return experience_details[LLExperienceCache::NAME].asString(); + std::string experience_name_string = experience_details[LLExperienceCache::NAME].asString(); + return experience_name_string.empty() ? LLTrans::getString("ExperienceNameUntitled") : experience_name_string; } addObserver(experience_id_string, url, cb); |