aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/PGSQL/PGSQLUserProfilesData.cs
diff options
context:
space:
mode:
authorAliciaRaven2015-03-31 12:35:55 +0100
committerMichael Cerquoni2015-04-12 15:36:22 -0400
commit1e444b1449ffad4969709c039f7c606c9f8f484d (patch)
tree51187c4212cc2397a9b6c1af9a657cba0335a734 /OpenSim/Data/PGSQL/PGSQLUserProfilesData.cs
parentFix llTargetOmega non-physical gain. (diff)
downloadopensim-SC-1e444b1449ffad4969709c039f7c606c9f8f484d.zip
opensim-SC-1e444b1449ffad4969709c039f7c606c9f8f484d.tar.gz
opensim-SC-1e444b1449ffad4969709c039f7c606c9f8f484d.tar.bz2
opensim-SC-1e444b1449ffad4969709c039f7c606c9f8f484d.tar.xz
Change UserProfiles so that the parcel name is used for a ProfilePick and not the parcel owners name. This change also fixes a bug where if the avatar enters and does not move, creating or editing a ProfilePick would set the parcelId as an empty UUID. This is because ScenePresence.currentParcelUUID is not set until the avatar moves.
Signed-off-by: Michael Cerquoni <nebadon2025@gmail.com>
Diffstat (limited to 'OpenSim/Data/PGSQL/PGSQLUserProfilesData.cs')
-rw-r--r--OpenSim/Data/PGSQL/PGSQLUserProfilesData.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Data/PGSQL/PGSQLUserProfilesData.cs b/OpenSim/Data/PGSQL/PGSQLUserProfilesData.cs
index d00c3cf..a003e07 100644
--- a/OpenSim/Data/PGSQL/PGSQLUserProfilesData.cs
+++ b/OpenSim/Data/PGSQL/PGSQLUserProfilesData.cs
@@ -385,7 +385,7 @@ namespace OpenSim.Data.PGSQL
385 pick.Enabled = Convert.ToBoolean(reader["enabled"]); 385 pick.Enabled = Convert.ToBoolean(reader["enabled"]);
386 pick.Name = reader["name"].ToString (); 386 pick.Name = reader["name"].ToString ();
387 pick.Desc = reader["description"].ToString(); 387 pick.Desc = reader["description"].ToString();
388 pick.User = reader["user"].ToString(); 388 pick.ParcelName = reader["user"].ToString();
389 pick.OriginalName = reader["originalname"].ToString(); 389 pick.OriginalName = reader["originalname"].ToString();
390 pick.SimName = reader["simname"].ToString(); 390 pick.SimName = reader["simname"].ToString();
391 pick.SortOrder = (int)reader["sortorder"]; 391 pick.SortOrder = (int)reader["sortorder"];
@@ -437,7 +437,7 @@ namespace OpenSim.Data.PGSQL
437 cmd.Parameters.Add(m_database.CreateParameter("Name", pick.Name)); 437 cmd.Parameters.Add(m_database.CreateParameter("Name", pick.Name));
438 cmd.Parameters.Add(m_database.CreateParameter("Desc", pick.Desc)); 438 cmd.Parameters.Add(m_database.CreateParameter("Desc", pick.Desc));
439 cmd.Parameters.Add(m_database.CreateParameter("SnapshotId", pick.SnapshotId)); 439 cmd.Parameters.Add(m_database.CreateParameter("SnapshotId", pick.SnapshotId));
440 cmd.Parameters.Add(m_database.CreateParameter("User", pick.User)); 440 cmd.Parameters.Add(m_database.CreateParameter("User", pick.ParcelName));
441 cmd.Parameters.Add(m_database.CreateParameter("Original", pick.OriginalName)); 441 cmd.Parameters.Add(m_database.CreateParameter("Original", pick.OriginalName));
442 cmd.Parameters.Add(m_database.CreateParameter("SimName",pick.SimName)); 442 cmd.Parameters.Add(m_database.CreateParameter("SimName",pick.SimName));
443 cmd.Parameters.Add(m_database.CreateParameter("GlobalPos", pick.GlobalPos)); 443 cmd.Parameters.Add(m_database.CreateParameter("GlobalPos", pick.GlobalPos));