init commit of removing code for entity service that loads in any property data
This commit is contained in:
@@ -164,14 +164,17 @@ namespace Umbraco.Web.Trees
|
||||
|
||||
public IEnumerable<SearchResultEntity> Search(string query, int pageSize, long pageIndex, out long totalFound, string searchFrom = null)
|
||||
{
|
||||
return _treeSearcher.ExamineSearch(query, UmbracoEntityTypes.Media, pageSize, pageIndex, out totalFound, searchFrom);
|
||||
return _treeSearcher.ExamineSearch(query, UmbracoEntityTypes.Media, pageSize, pageIndex, out totalFound, false, searchFrom);
|
||||
}
|
||||
|
||||
internal override IEnumerable<IEntitySlim> GetChildrenFromEntityService(int entityId)
|
||||
// Not pretty having to cast the service, but it is the only way to get to use an internal method that we
|
||||
// do not want to make public on the interface. Unfortunately also prevents this from being unit tested.
|
||||
// See this issue for details on why we need this:
|
||||
// https://github.com/umbraco/Umbraco-CMS/issues/3457
|
||||
=> ((EntityService)Services.EntityService).GetMediaChildrenWithoutPropertyData(entityId).ToList();
|
||||
//internal override IEnumerable<IEntitySlim> GetChildrenFromEntityService(int entityId)
|
||||
// => Services.EntityService.GetChildren(entityId, UmbracoObjectType).ToList();
|
||||
|
||||
//internal override IEnumerable<IEntitySlim> GetChildrenFromEntityService(int entityId)
|
||||
// // Not pretty having to cast the service, but it is the only way to get to use an internal method that we
|
||||
// // do not want to make public on the interface. Unfortunately also prevents this from being unit tested.
|
||||
// // See this issue for details on why we need this:
|
||||
// // https://github.com/umbraco/Umbraco-CMS/issues/3457
|
||||
// => ((EntityService)Services.EntityService).GetMediaChildrenWithoutPropertyData(entityId).ToList();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user