From 442c025335ce9b4e9590f76c1490962044e7ea39 Mon Sep 17 00:00:00 2001 From: Diva Canto Date: Mon, 1 Jun 2015 18:57:01 -0700 Subject: [PATCH] Mantis #7594. Fixing the broken code I just introduced. --- .../Handlers/FetchInventory/FetchInvDescHandler.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/OpenSim/Capabilities/Handlers/FetchInventory/FetchInvDescHandler.cs b/OpenSim/Capabilities/Handlers/FetchInventory/FetchInvDescHandler.cs index fdbe1f408a..0c83b26b29 100644 --- a/OpenSim/Capabilities/Handlers/FetchInventory/FetchInvDescHandler.cs +++ b/OpenSim/Capabilities/Handlers/FetchInventory/FetchInvDescHandler.cs @@ -111,7 +111,10 @@ namespace OpenSim.Capabilities.Handlers } // Filter duplicate folder ids that bad viewers may send - folders = (List)folders.GroupBy(f => f.folder_id).Select(n => n.First()); + var unique = folders.GroupBy(f => f.folder_id).Select(n => n.First()); + folders.Clear(); + foreach (var f in unique) + folders.Add(f); } if (folders.Count > 0)