Back-end fix for region name searches made from the viewer grid map dialog.

GetRegionsByName now returns names that include, but don't start with, the
given search string.
httptests
Kevin Cozens 2018-07-06 21:26:16 -04:00
parent 8ac69a5d27
commit e5238cadf7
1 changed files with 1 additions and 1 deletions

View File

@ -494,7 +494,7 @@ namespace OpenSim.Services.GridService
{
// m_log.DebugFormat("[GRID SERVICE]: GetRegionsByName {0}", name);
List<RegionData> rdatas = m_Database.Get(Util.EscapeForLike(name) + "%", scopeID);
List<RegionData> rdatas = m_Database.Get("%" + Util.EscapeForLike(name) + "%", scopeID);
int count = 0;
List<GridRegion> rinfos = new List<GridRegion>();