From 442c025335ce9b4e9590f76c1490962044e7ea39 Mon Sep 17 00:00:00 2001 From: Diva Canto Date: Mon, 1 Jun 2015 18:57:01 -0700 Subject: Mantis #7594. Fixing the broken code I just introduced. --- OpenSim/Capabilities/Handlers/FetchInventory/FetchInvDescHandler.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'OpenSim') diff --git a/OpenSim/Capabilities/Handlers/FetchInventory/FetchInvDescHandler.cs b/OpenSim/Capabilities/Handlers/FetchInventory/FetchInvDescHandler.cs index fdbe1f4..0c83b26 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) -- cgit v1.1