Convert the enum to int before casting it to string for DB query

0.8.2-post-fixes
Diva Canto 2015-08-08 13:47:42 -07:00
parent 2c9ffc2a87
commit d9a9f6f43b
1 changed files with 1 additions and 1 deletions

View File

@ -505,7 +505,7 @@ namespace OpenSim.Services.HypergridService
// Warp! Root folder for travelers
XInventoryFolder[] folders = m_Database.GetFolders(
new string[] { "agentID", "type" },
new string[] { principalID.ToString(), FolderType.Suitcase.ToString() });
new string[] { principalID.ToString(), ((int)FolderType.Suitcase).ToString() });
if (folders != null && folders.Length > 0)
return folders[0];