From ef0eb8dbcf3980a057ad0864efa1c8e1575a8428 Mon Sep 17 00:00:00 2001
From: Josh Bell <josh@lindenlab.com>
Date: Thu, 1 Nov 2007 22:23:39 +0000
Subject: [PATCH] svn merge -r 72356:72879
 svn+ssh://svn.lindenlab.com/svn/linden/branches/Branch_1-18-3-Server -->
 release

Backport fixes from 1.18.3 Server
---
 indra/llinventory/llparcel.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/indra/llinventory/llparcel.cpp b/indra/llinventory/llparcel.cpp
index 57d315f2656..7cc3e578e5c 100644
--- a/indra/llinventory/llparcel.cpp
+++ b/indra/llinventory/llparcel.cpp
@@ -1616,7 +1616,7 @@ void LLParcel::startSale(const LLUUID& buyer_id, BOOL is_buyer_group)
 	mSaleTimerExpires.setTimerExpirySec(DEFAULT_USEC_SALE_TIMEOUT / SEC_TO_MICROSEC);
 	mStatus = OS_LEASE_PENDING;
 	mClaimDate = time(NULL);
-	mAuctionID = 0;
+	setAuctionID(0);
 	// clear the autoreturn whenever land changes hands
 	setCleanOtherTime(0);
 }
@@ -1651,6 +1651,7 @@ void LLParcel::completeSale(U32& type, U8& flags,
 	// Purchased parcels are assumed to no longer be for sale.
 	// Otherwise someone can snipe the sale.
 	setForSale(FALSE);
+	setAuctionID(0);
 
 	// Turn off show directory, since it's a recurring fee that
 	// the buyer may not want.
@@ -1676,6 +1677,7 @@ void LLParcel::clearSale()
 	}
 	mAuthBuyerID.setNull();
 	setForSale(FALSE);
+	setAuctionID(0);
 	setPreviousOwnerID(LLUUID::null);
 	setPreviouslyGroupOwned(FALSE);
 	setSellWithObjects(FALSE);
-- 
GitLab