summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh Bell <josh@lindenlab.com>2007-12-14 23:04:55 +0000
committerJosh Bell <josh@lindenlab.com>2007-12-14 23:04:55 +0000
commit4d87303e78c1accde85b217b325e0c08930b0c4c (patch)
treea029a2e0fde70ae31da75ca805dea8d7fba1059a
parent9f5ec4c62c4f44507acd045732555f0814096e93 (diff)
svn merge -c 73823 svn+ssh://svn.lindenlab.com/svn/linden/branches/maintenance-4 --> release
Cherry pick fix for showstopper fix: DEV-5701 / SVC-930: Prims set for sale - prices are incorrectly set when multiple prims taken to inventory and rezzed
-rw-r--r--indra/llinventory/llinventory.h3
-rw-r--r--indra/newview/llfloaterproperties.cpp6
2 files changed, 9 insertions, 0 deletions
diff --git a/indra/llinventory/llinventory.h b/indra/llinventory/llinventory.h
index 065c82ddd4..5ff7a1e72b 100644
--- a/indra/llinventory/llinventory.h
+++ b/indra/llinventory/llinventory.h
@@ -150,6 +150,9 @@ public:
// track attachment points.
II_FLAGS_OBJECT_SLAM_PERM = 0x100,
+ // flag to indicate that the object sale information has been changed.
+ II_FLAGS_OBJECT_SLAM_SALE = 0x1000,
+
// These flags specify which permissions masks to overwrite
// upon rez. Normally, if no permissions slam (above) or
// overwrite flags are set, the asset's permissions are
diff --git a/indra/newview/llfloaterproperties.cpp b/indra/newview/llfloaterproperties.cpp
index 538e8415a0..82f72103f7 100644
--- a/indra/newview/llfloaterproperties.cpp
+++ b/indra/newview/llfloaterproperties.cpp
@@ -867,6 +867,12 @@ void LLFloaterProperties::updateSaleInfo()
&& item->isComplete())
{
LLPointer<LLViewerInventoryItem> new_item = new LLViewerInventoryItem(item);
+
+ // Force an update on the sale price.
+ U32 flags = new_item->getFlags();
+ flags |= LLInventoryItem::II_FLAGS_OBJECT_SLAM_SALE;
+ new_item->setFlags(flags);
+
new_item->setSaleInfo(sale_info);
if(mObjectID.isNull())
{