summaryrefslogtreecommitdiff
path: root/indra/llui/llnotifications.cpp
diff options
context:
space:
mode:
authorRichard Linden <none@none>2012-07-23 19:33:39 -0700
committerRichard Linden <none@none>2012-07-23 19:33:39 -0700
commit176b7d82be3b48344e2a54f81402352273719108 (patch)
treea2a83e389bbc9b8faf57f8a32a4efa997ca8794e /indra/llui/llnotifications.cpp
parentbe53b31fedd3b6eb559838323314e5ec1af21f0c (diff)
CHUI-227 FIX Teleport offers sent are not received
cleaned up serialization of LLSD to param block so that it can round-trip also, optimized LLXMLNode and fixed an assert
Diffstat (limited to 'indra/llui/llnotifications.cpp')
-rw-r--r--indra/llui/llnotifications.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/indra/llui/llnotifications.cpp b/indra/llui/llnotifications.cpp
index 48128e0b40..7e1e2c3c9b 100644
--- a/indra/llui/llnotifications.cpp
+++ b/indra/llui/llnotifications.cpp
@@ -223,14 +223,6 @@ LLNotificationForm::LLNotificationForm(const std::string& name, const LLNotifica
LLParamSDParser parser;
parser.writeSD(mFormData, p.form_elements);
- if (!mFormData.isArray() && !mFormData.isUndefined())
- {
- // change existing contents to a one element array
- LLSD new_llsd_array = LLSD::emptyArray();
- new_llsd_array.append(mFormData);
- mFormData = new_llsd_array;
- }
-
for (LLSD::array_iterator it = mFormData.beginArray(), end_it = mFormData.endArray();
it != end_it;
++it)
@@ -516,7 +508,7 @@ LLSD LLNotification::asLLSD()
p.id = mId;
p.name = mTemplatep->mName;
p.form_elements = getForm()->asLLSD();
-
+
p.substitutions = mSubstitutions;
p.payload = mPayload;
p.time_stamp = mTimestamp;