Don't show hidden groups in search results
Resolves http://opensimulator.org/mantis/view.php?id=69370.8.0.3
parent
1d4551e52f
commit
b9e0d0fdb2
|
@ -86,11 +86,11 @@ namespace OpenSim.Data.MySQL
|
||||||
public GroupData[] RetrieveGroups(string pattern)
|
public GroupData[] RetrieveGroups(string pattern)
|
||||||
{
|
{
|
||||||
if (string.IsNullOrEmpty(pattern))
|
if (string.IsNullOrEmpty(pattern))
|
||||||
pattern = "1 ORDER BY Name LIMIT 100";
|
pattern = "1";
|
||||||
else
|
else
|
||||||
pattern = string.Format("Name LIKE '%{0}%' ORDER BY Name LIMIT 100", pattern);
|
pattern = string.Format("Name LIKE '%{0}%'", pattern);
|
||||||
|
|
||||||
return m_Groups.Get(pattern);
|
return m_Groups.Get(string.Format("ShowInList=1 AND ({0}) ORDER BY Name LIMIT 100", pattern));
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool DeleteGroup(UUID groupID)
|
public bool DeleteGroup(UUID groupID)
|
||||||
|
|
Loading…
Reference in New Issue